Skip to content

Commit

Permalink
[docs] Fix missing emotion prefixes (#34958)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Oct 31, 2022
1 parent 5eb3ee0 commit ff26e71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/createEmotionCache.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable default-case */
import createCache from '@emotion/cache';
import { Element, RULESET } from 'stylis';
import { prefixer, Element, RULESET } from 'stylis';

// A workaround to https://github.com/emotion-js/emotion/issues/2836
// to be able to use `:where` selector for styling.
Expand All @@ -19,5 +19,5 @@ function globalSelector(element: Element) {

export default function createEmotionCache() {
// TODO remove prepend: true once JSS is out
return createCache({ key: 'css', prepend: true, stylisPlugins: [globalSelector] });
return createCache({ key: 'css', prepend: true, stylisPlugins: [prefixer, globalSelector] });
}

0 comments on commit ff26e71

Please sign in to comment.