Skip to content

Commit

Permalink
Set fallback value for --padding-top/bottom on item (#2118)
Browse files Browse the repository at this point in the history
* πŸ›  Set padding if custom css prop is not set

* πŸ’„ Default to initial value

* πŸ› Revert to specific fallback value for clarity
  • Loading branch information
RasmusKjeldgaard authored Mar 22, 2022
1 parent a7c6730 commit 042e863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/designsystem/src/lib/components/item/item.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
position: relative;

ion-item {
--padding-top: var(--item-padding-top);
--padding-bottom: var(--item-padding-bottom);
--padding-top: var(--item-padding-top, 0px);
--padding-bottom: var(--item-padding-bottom, 0px);
font-size: utils.font-size('s');
--min-height: #{map.get(utils.$item-heights, 'm')};
--padding-start: #{utils.size('s')};
Expand Down

0 comments on commit 042e863

Please sign in to comment.