-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Description
Two related visual issues in the List component with the rokkit theme:
-
No indentation on child items — group headers and their children appear at the same visual indent level. The
data-levelattribute is set correctly, but the rokkit theme CSS does not apply indentation based on it. Child items should be inset relative to their group header. -
No extra spacing before group headers — there is no visual gap between the last child item of a group and the next group header. Each group header should have extra top-spacing to separate it from the preceding items.
Proposed Fix
- Add an
indentboolean prop to<List>(defaulttrue) that controls whether children are indented relative to their group header. Theme CSS should apply padding-left based ondata-levelwhen indent is active. - Add appropriate
margin-toporpadding-topto[data-list-group]elements in the rokkit theme CSS.
Affected Files
packages/ui/src/components/List.svelte— addindentproppackages/themes/src/rokkit/— fix group spacing and child indentation CSS
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels