Skip to content

Commit

Permalink
Rename style sheet context name to STYLE_SHEET
Browse files Browse the repository at this point in the history
  • Loading branch information
drozdzynski committed May 24, 2024
1 parent 2b0f714 commit 5083485
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/cold-ghosts-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@teiler/vue": patch
---

Rename style sheet context name to `STYLE_SHEET`
4 changes: 2 additions & 2 deletions packages/vue/src/Styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ export default function <Target extends HTMLElements, Props>(styleDefinition: St
const slots = this.$slots
const attrs = toRaw(this.$attrs)

const styleSheet = inject<Sheet>('styleSheet', () => createStyleSheet({}), true)
const styleSheet = inject<Sheet>('STYLE_SHEET', () => createStyleSheet({}), true)

const theme = toRaw(toValue(inject(context)))
const theme = toRaw(toValue(inject(context, {})))

const styleClassName = insert(styleSheet, styleDefinition, { ...attrs, theme })

Expand Down

0 comments on commit 5083485

Please sign in to comment.