Skip to content

Commit

Permalink
feat(DropdownDivider): config redesign and implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
driss-chelouati committed Dec 6, 2023
1 parent 1492a80 commit be03bc7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
export const key = 'drodownDivider' as const

export const defaultConfig = {
space: '2',
border: 'muted-200',
borderDark: 'muted-600',
margin: {
y: '2',
},
border: {
light: 'muted-200',
dark: 'muted-700',
},
}

export type DropdownDividerConfig = typeof defaultConfig
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/components/dropdown-divider/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default plugin.withOptions(

addComponents({
[`.${prefix}dropdown-divider`]: {
[`@apply my-${config.space} block h-px w-full border-t border-${config.border} dark:border-${config.borderDark}`]:
[`@apply my-${config.margin.y} block h-px w-full border-t border-${config.border.light} dark:border-${config.border.dark}`]:
{},
},
})
Expand Down

0 comments on commit be03bc7

Please sign in to comment.