Skip to content

Commit

Permalink
fix(step-list): fix border radius of step list elements
Browse files Browse the repository at this point in the history
  • Loading branch information
jeripeierSBB committed Aug 28, 2024
1 parent 380a736 commit 7969473
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/elements/core/styles/mixins/lists.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
--sbb-step-list-padding-block: var(--sbb-spacing-fixed-3x);
--sbb-step-list-padding-inline: var(--sbb-spacing-responsive-xxs);
--sbb-step-list-marker-to-text-gap: var(--sbb-spacing-responsive-xxxs);
--sbb-step-list-border-radius: var(--sbb-border-radius-4x);

// Additional space from overall li padding to the text because text
// has to be centered to marker number.
Expand Down Expand Up @@ -117,7 +118,6 @@
position: relative;
counter-increment: steps;
background-color: var(--sbb-color-milk);
border-radius: var(--sbb-border-radius-4x);
padding-block: calc(
var(--sbb-step-list-padding-block) + var(--sbb-step-list-text-to-marker-block-offset)
)
Expand All @@ -131,6 +131,16 @@
var(--sbb-step-list-marker-dimensions) + 2 * var(--sbb-step-list-padding-block)
);

&:first-of-type {
border-start-start-radius: var(--sbb-step-list-border-radius);
border-start-end-radius: var(--sbb-step-list-border-radius);
}

&:last-of-type {
border-end-start-radius: var(--sbb-step-list-border-radius);
border-end-end-radius: var(--sbb-step-list-border-radius);
}

&::before {
@include typo.text-xxs--bold;

Expand Down

0 comments on commit 7969473

Please sign in to comment.