Skip to content

Commit

Permalink
[docs] Fix missing emotion prefixes (mui#34958)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored and felipe.richter committed Dec 6, 2022
1 parent 3014344 commit f9f297a
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 f9f297a

Please sign in to comment.