-
Notifications
You must be signed in to change notification settings - Fork 863
Description
Summary
There have been several instances when using EuiDescriptionList where the default 16px spacing feels too generous. I've run into this when working on flyouts, expanded table rows, or dashboard-esque panels where we provide summary information. In these cases, i've found that 8px feels more appropriate. This could also work well on smaller devices / breakpoints. I've seen engineers work around this by using multiple EuiDescriptionLists with just a single title/description inside so they can control the spacing with EuiSpacer or custom CSS. This feels a little messy and not very semantic. Ideally all items are rendered inside a single <dl>
Proposal
Add a prop to EuiDescriptionList to enable this. The prop should default to our current 16px spacing so current implementations are unaffected. I imagine this prop would be ignored when using the condensed layout option. I'm open to ideas on what we call this prop. I like spacing, which would accept sizes such as s (8px) and m (16px, default). However, this prop name isn't used anywhere else (AFAIK) and might be opening a can of worms. Open to ideas!
Next steps
Curious how others feel about this. If there's consensus, I'd be happy to take this on / assign myself. Shouldn't be too hard and it's been awhile since I've contributed :)
