Skip to content

Commit

Permalink
Fix checkbox with brand colors
Browse files Browse the repository at this point in the history
  • Loading branch information
kidonng committed Jun 12, 2023
1 parent f7bd314 commit dbb4ccb
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,15 @@ export const presetDaisy = (
},
},
rules: [...rules].map(
rule =>
([base, rule]) =>
[
new RegExp(`^${rule[0]}$`),
() => replaceSlash(replacePrefix(rule[1])),
{layer: 'daisy-components'},
new RegExp(`^${base}$`),
() => replaceSlash(replacePrefix(rule)),
{
layer: base.startsWith('checkbox-')
? 'daisy-components-post'
: 'daisy-components',
},
] satisfies DynamicRule,
),
}
Expand Down

0 comments on commit dbb4ccb

Please sign in to comment.