Closed mimarz closed 11 months ago
Its normal to use hr element for dividing content. We have quite a few instances where a divider should be used instead of top/bottom border.
hr
Make a simple Divider component with color tokens and top/bottom margin.
Divider
color?: 'default' | 'subtle' | 'strong'
Use cases for a divider is for dividing content used in Card, DropdownMenu , Modal, Popover etc.
Card
DropdownMenu
Modal
Popover
Use new divider color tokens: https://github.com/digdir/designsystem/pull/1056
Relevant: #1043
New divider color tokens was created in meeting 6.nov: https://github.com/digdir/designsystem/pull/1056
Its normal to use
hr
element for dividing content. We have quite a few instances where a divider should be used instead of top/bottom border.Make a simple
Divider
component with color tokens and top/bottom margin.color?: 'default' | 'subtle' | 'strong'
Use cases for a divider is for dividing content used in
Card
,DropdownMenu
,Modal
,Popover
etc.Use new divider color tokens: https://github.com/digdir/designsystem/pull/1056
Relevant: #1043