-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I did every component in singular commits so it's easier to check. Did not do anything with form components. Excluding `Card` since it was only on content and footer, which is deleted in another PR
- Loading branch information
Showing
27 changed files
with
225 additions
and
244 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
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
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 |
---|---|---|
@@ -1,32 +1,38 @@ | ||
.ds-list { | ||
--dsc-list-font-size: var(--ds-font-size-5); | ||
--dsc-list-padding-left: var(--ds-spacing-6); | ||
--dsc-list-spacing: var(--ds-spacing-3); | ||
--dsc-list-spacing-nested: var(--ds-spacing-2); | ||
|
||
font-size: var(--dsc-list-font-size); /* Replace with composes paragraph-md */ | ||
line-height: var(--ds-line-height-md); /* Replace with composes paragraph-md */ | ||
margin: 0; | ||
padding-left: var(--dsc-list-padding-left); | ||
|
||
& > li + li { margin-top: var(--dsc-list-spacing) } | ||
& > li > :is(ol, ul) { --dsc-list-spacing: var(--dsc-list-spacing-nested) } /* Shrink spacing a bit when nested */ | ||
@composes ds-body-text--md from './baseline/typography.css'; | ||
|
||
& > li + li { | ||
margin-top: var(--dsc-list-spacing); | ||
} | ||
|
||
& > li > :is(ol, ul) { | ||
--dsc-list-spacing: var(--dsc-list-spacing-nested); | ||
} /* Shrink spacing a bit when nested */ | ||
|
||
/* Add zero-width space to fix VoiceOver: https://gerardkcohen.me/writing/2017/voiceover-list-style-type.html | ||
* This can also be acheived by using role="list" + role="listitem", but is nice to solve with CSS avoiding cluttered HTML | ||
*/ | ||
& > li::before { | ||
content: "\200B"; | ||
content: '\200B'; | ||
position: absolute; | ||
} | ||
|
||
&[data-size="sm"] { | ||
&[data-size='sm'] { | ||
--dsc-list-padding-left: var(--ds-spacing-4); | ||
--dsc-list-font-size: var(--ds-font-size-4); /* Replace with composes paragraph-sm */ | ||
|
||
@composes ds-body-text--sm from './baseline/typography.css'; | ||
} | ||
|
||
&[data-size="lg"] { | ||
--dsc-list-font-size: var(--ds-font-size-6); /* Replace with composes paragraph-sm */ | ||
&[data-size='lg'] { | ||
--dsc-list-spacing: var(--ds-spacing-4); | ||
|
||
@composes ds-body-text--lg from './baseline/typography.css'; | ||
} | ||
} |
Oops, something went wrong.