Skip to content

Commit

Permalink
πŸ’„ Tweak badge position
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusKjeldgaard committed Aug 25, 2022
1 parent b839eb2 commit 5e0196d
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ ion-tab-button {

@include utils.slotted(div kirby-badge) {
&.md {
--kirby-badge-top: -#{utils.size('xxxs')};
--kirby-badge-left: #{utils.size('s')};
// Magic values here as we have no tokens that gives
// badge the correct position in relation to the tab icon
--kirby-badge-top: -0.4em;
--kirby-badge-left: 1.4em;
}
}

Expand All @@ -40,10 +42,10 @@ ion-tab-button {

@include utils.slotted(div kirby-badge) {
&.md {
// Magic constants here as we have no tokens that gives
// Magic values here as we have no tokens that gives
// badge the correct position in relation to the tab icon
--kirby-badge-top: -10px;
--kirby-badge-left: 14px;
--kirby-badge-top: -1em;
--kirby-badge-left: 1.4em;
}
}
}
Expand Down

0 comments on commit 5e0196d

Please sign in to comment.