Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Update spacing in Ordered and Unordered List #1632

Merged
merged 7 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/css/src/components/ordered-list/ordered-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
/** A nested list has a different marker and less indentation for correct alignment. */
:is(.ams-ordered-list, .ams-unordered-list) .ams-ordered-list {
list-style-type: var(--ams-ordered-list-ordered-list-list-style-type);
padding-block-start: var(--ams-ordered-list-ordered-list-padding-block-start);

.ams-ordered-list__item {
margin-inline-start: var(--ams-ordered-list-ordered-list-item-margin-inline-start);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
/** A nested list has a different marker and less indentation for correct alignment. */
:is(.ams-ordered-list, .ams-unordered-list) .ams-unordered-list {
list-style-type: var(--ams-unordered-list-unordered-list-list-style-type);
padding-block-start: var(--ams-unordered-list-unordered-list-padding-block-start);

.ams-unordered-list__item {
margin-inline-start: var(--ams-unordered-list-unordered-list-item-margin-inline-start);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
},
"ordered-list": {
"list-style-type": { "value": "lower-alpha" },
"padding-block-start": { "value": "{ams.space.xs}" },
dlnr marked this conversation as resolved.
Show resolved Hide resolved
"item": {
"margin-inline-start": {
"value": "1.5rem",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
},
"unordered-list": {
"list-style-type": { "value": "'\\2013'" },
"padding-block-start": { "value": "{ams.space.xs}" },
dlnr marked this conversation as resolved.
Show resolved Hide resolved
"item": {
"margin-inline-start": {
"value": "0.875rem",
Expand Down