Skip to content

Commit

Permalink
feat(headline): #20 fix headline alignment when switchOrder is set
Browse files Browse the repository at this point in the history
  • Loading branch information
fleven-kds committed Nov 26, 2024
1 parent 45abf0d commit 1a68758
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions components/headline/headline.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@import "./headline-tokens.scss";
:root {
.dsa-headline {
&--align-center {
&:after {
margin: auto;
}
}
// &--align-center {
// &:after {
// margin: auto;
// }
// }

.dsa-headline__subheadline:not(:first-child),
.dsa-headline__headline:not(:first-child) {
Expand All @@ -26,7 +26,6 @@
.dsa-headline__subheadline:not(:last-child) {
display: flex;
flex-direction: column;
align-items: center;

&:after {
content: "";
Expand All @@ -39,14 +38,23 @@
}
}

&.dsa-headline--align-center {
.dsa-headline__headline,
.dsa-headline__subheadline {
align-items: center;
}
}

&.dsa-headline--align-left {
.dsa-headline__headline {
.dsa-headline__headline,
.dsa-headline__subheadline {
align-items: flex-start;
}
}

&.dsa-headline--align-right {
.dsa-headline__headline {
.dsa-headline__headline,
.dsa-headline__subheadline {
align-items: flex-end;
}
}
Expand Down

0 comments on commit 1a68758

Please sign in to comment.