Skip to content

Commit

Permalink
Tweak changesets created in #2521
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Nov 14, 2021
1 parent d9b247d commit 9e82a99
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .changeset/seventy-balloons-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@emotion/sheet': minor
---

author: @mnajdova
pr: #2521

Added `insertionPoint` option to the `Sheet`'s constructor. It can be used to insert rules after the specified element.
3 changes: 1 addition & 2 deletions .changeset/sixty-balloons-build.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
---
'@emotion/cache': minor
'@emotion/sheet': minor
---

Add insertionPoint option to the EmotionCache, to insert rules after the specified element.
Added `insertionPoint` option to the `createCache`. It can be used to insert rules after the specified element. For example, to use it with the `CacheProvider` from `@emotion/react` you can do this:

```jsx
const head = document.querySelector('head')
Expand Down

0 comments on commit 9e82a99

Please sign in to comment.