make danger buttons less obnoxious
This commit is contained in:
parent
1ab2a5d7d9
commit
17b82be1a4
2 changed files with 7 additions and 2 deletions
|
|
@ -499,7 +499,12 @@ export const init = ({
|
|||
}),
|
||||
)
|
||||
const lastVariantRule = variantRules[variantRules.length - 1]
|
||||
if (lastVariantRule) {
|
||||
const lastVariantSelector = ruleToSelector(
|
||||
lastVariantRule,
|
||||
true,
|
||||
)
|
||||
|
||||
if (lastVariantRule && lastVariantSelector !== selector) {
|
||||
inheritRule = lastVariantRule
|
||||
} else {
|
||||
const normalRules = ruleset.filter(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue