Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: migrate Tile component to Fiori3 (#990)
* initial commit for Tiles, keeping and moving the old Tile code for documentation purposes * add numeric content, feed and launch tile * add tests * update visual tests * update visual tests * minor changes, combine tests * add storybook for tile * add truncation for long text and doc improvements * add Badge Tile * add rtl for badge * add action mode and slide tile * bring back badge * IE11 fixes * address PR review comments * update tests * add more info for the docs * some a11y improvements, use fd-button for indicator and close btns * docs improvements
- Loading branch information
1 parent
8de3004
commit c01400f
Showing
51 changed files
with
3,337 additions
and
646 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"files": [ | ||
{ | ||
"path": "./dist/fundamental-styles.css", | ||
"maxSize": "72 kB" | ||
"maxSize": "75 kB" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
@import "../../src/settings"; | ||
@import "../../src/mixins"; | ||
@import "../../src/functions"; | ||
|
||
.docs-tile { | ||
// VARS | ||
color: var(--sapTile_TextColor); | ||
background-color: var(--sapTile_Background); | ||
$fd-tile-content-padding: fd-space(4) fd-space("reg") !default; | ||
$fd-tile-content-padding-x: fd-space("small") !default; | ||
$fd-tile-content-padding-y: fd-space(2) + 2px !default; | ||
// anim | ||
$fd-tile-transition-params: $fd-animation-speed ease-in !default; | ||
|
||
@include fd-reset(); | ||
|
||
display: flex; | ||
|
||
&__text { | ||
@include fd-reset(); | ||
} | ||
|
||
// MODIFICATIONS | ||
&--button, | ||
&[role="button"] { | ||
@include action-cursor(); | ||
|
||
transition: box-shadow $fd-tile-transition-params; | ||
|
||
&:hover { | ||
box-shadow: 0 0 5px 0 rgba(var(--sapTile_BorderColor), 0.4); | ||
position: relative; | ||
z-index: map-get($fd-z-index-levels, "first"); | ||
} | ||
} | ||
// STATES | ||
&.is-disabled { | ||
opacity: 0.4; | ||
} | ||
|
||
// ELEMENTS | ||
&__media { | ||
@include fd-reset(); | ||
|
||
padding: $fd-tile-content-padding-y 0 $fd-tile-content-padding-y $fd-tile-content-padding-x; | ||
|
||
@include fd-rtl() { | ||
padding-right: $fd-tile-content-padding-x; | ||
padding-left: 0; | ||
} | ||
} | ||
|
||
&__content { | ||
@include fd-reset(); | ||
|
||
flex: 1; | ||
padding: $fd-tile-content-padding-y $fd-tile-content-padding-x $fd-tile-content-padding-y fd-space(3); | ||
|
||
@include fd-rtl() { | ||
padding-right: fd-space(3); | ||
padding-left: $fd-tile-content-padding-x; | ||
} | ||
|
||
align-self: center; | ||
|
||
&:first-child { | ||
padding-left: $fd-tile-content-padding-x; | ||
|
||
@include fd-rtl() { | ||
padding-right: $fd-tile-content-padding-x; | ||
} | ||
} | ||
} | ||
|
||
&__title { | ||
@include fd-type("0"); | ||
|
||
color: var(--sapTile_TitleTextColor); | ||
|
||
@include fd-reset-spacing(); | ||
} | ||
|
||
&__actions { | ||
@include fd-reset(); | ||
|
||
padding: fd-space(3) $fd-tile-content-padding-x fd-space(3) fd-space(3); | ||
} | ||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.