Open Cian77 opened 1 month ago
Open issues:
https://www.figma.com/design/JIT5AdGYqv6bDRpfBPV8XR/Foundations-%26-Components-Next-Level?node-id=21-170
Base styles: body Token set name: Elements/ListBullet
body
Elements/ListBullet
post-list-bullet-margin-block
List simple / Bullets
post-list-bullet-item-gap-block
listItem 1
listItem 2
post-list-bullet-item-icon-gap-inline
bulletIcon
bulletLabel
post-list-bullet-item-icon-size
post-list-bullet-item-icon-text-padding-block
post-list-bullet-item-icon-bullet-size
Bullet
Code example:
ul { --post-body-line-height: 1.5em; --post-list-bullet-margin-block: 1rem; --post-list-bullet-item-gap-block: 8px; --post-list-bullet-item-icon-size: 32px; --post-list-bullet-item-icon-gap-inline: 8px; --post-list-bullet-item-icon-text-padding-block: 1px; --post-list-bullet-item-icon-bullet-size: 8px; margin-block-start: var(--post-list-bullet-margin-block); padding-inline-start: calc( var(--post-list-bullet-item-icon-size) + var(--post-list-bullet-item-icon-gap-inline) ); list-style: none; li { position: relative; padding-block: var(--post-list-bullet-item-icon-text-padding-block); &:not(:first-child) { margin-block-start: var(--post-list-bullet-item-gap-block); } &::before { box-sizing: content-box; display: block; content: ""; position: absolute; right: 100%; margin-block-start: calc( var(--post-body-line-height) * 0.5 - var(--post-list-bullet-item-icon-bullet-size) * 0.5 ); margin-inline-end: calc( var(--post-list-bullet-item-icon-size) * 0.5 - var(--post-list-bullet-item-icon-bullet-size) * 0.5 + var(--post-list-bullet-item-icon-gap-inline) ); width: var(--post-list-bullet-item-icon-bullet-size); height: var(--post-list-bullet-item-icon-bullet-size); background-color: currentColor; border-radius: 50%; } } }
### đŸ’» Tasks - [x] Review Design (All states present? Possible to implement?) - [ ] #3496 - [ ] Remove all unused scss variables for this element - [ ] HTML/CSS implementation - [ ] Documentation in Storybook - [ ] Design review
Forwarded to @gfellerph for token naming accordingly to todays discussion
@gfellerph What do you need here? Nothing seems to be different than when it got moved to ready for dev
Description
Open issues:
Design
https://www.figma.com/design/JIT5AdGYqv6bDRpfBPV8XR/Foundations-%26-Components-Next-Level?node-id=21-170
Tokens
DEVs proposal
Base styles:
body
Token set name:Elements/ListBullet
post-list-bullet-margin-block
(padding top/bottom onList simple / Bullets
)post-list-bullet-item-gap-block
(gap betweenlistItem 1
andlistItem 2
)post-list-bullet-item-icon-gap-inline
(gap betweenbulletIcon
andbulletLabel
)post-list-bullet-item-icon-size
(width ofbulletIcon
)post-list-bullet-item-icon-text-padding-block
(padding ofbulletLabel
)post-list-bullet-item-icon-bullet-size
(width/height ofBullet
)Code example:
Tasks