Skip to content

Commit

Permalink
Fix story
Browse files Browse the repository at this point in the history
  • Loading branch information
ghengeveld committed Aug 29, 2024
1 parent 40cdb93 commit 44e3f1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stories/CSSAtRules.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const DynamicStyles = {
if (window.__dynamicRuleInjected) return
window.__dynamicRuleInjected = true
const sheet = Array.from(document.styleSheets).at(-1)
sheet.insertRule("@layer foo { .dynamic.button:hover { background-color: tomato } }")
sheet.insertRule("@layer foo { .dynamic.button:hover { background-color: tomato!important } }")
emit(FORCE_REMOUNT, { storyId })
}, 100)
return <All className="dynamic" />
Expand Down

0 comments on commit 44e3f1e

Please sign in to comment.