Skip to content

Commit

Permalink
[docs] Fix missing emotion prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Oct 30, 2022
1 parent 626a255 commit 5390da2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/createEmotionCache.ts
@@ -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] });
}
1 change: 1 addition & 0 deletions docs/src/layouts/AppHeader.tsx
Expand Up @@ -24,6 +24,7 @@ const Header = styled('header')(({ theme }) => [
top: 0,
transition: theme.transitions.create('top'),
zIndex: theme.zIndex.appBar,
WebkitBackdropFilter: 'blur(20px)',
backdropFilter: 'blur(20px)',
boxShadow: `inset 0px -1px 1px ${(theme.vars || theme).palette.grey[100]}`,
backgroundColor: 'rgba(255,255,255,0.72)',
Expand Down

0 comments on commit 5390da2

Please sign in to comment.