feedback(list-item): start slot doesn't have default padding. #4801
Replies: 2 comments 6 replies
-
This was surfaced in the Lit Discord. Concerns here are for people slotting in other things like checkboxes or radios which are not icons. The pros for the current approach are that they fail fast and fail in a visually obvious manner of "this looks wrong", meaning that it indicates to the user that they should consider what the padding should be here since we do not have design tokens for them. On the other hand, if this is indeed an overtly popular use case, there is merit to making it the default. The problem is that right now we don't have any data on what the most common use cases for list-item, menu-item, and select-option are. At the peril of selection bias, please chime into this discussion with your thoughts, support, or opposition. |
Beta Was this translation helpful? Give feedback.
-
@e111077 |
Beta Was this translation helpful? Give feedback.
-
I forgot to set data-variant on md-list-item so it renders start without padding, maybe better to add the data-variant="icon" behavior as the default ?
Spec says padding is always 16 except for video
Feels more naturally I guess when only needing to add data-variant on special use cases.
Beta Was this translation helpful? Give feedback.
All reactions