Skip to content

Commit ce4a0ac

Browse files
authored
fix: enforce tailwind classes on grommet components (#252)
1 parent 8c1045c commit ce4a0ac

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

gatsby-browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ import "./prism-cb.css"
1212

1313
// Gatsby API to set Wrapper components. Wrapping entire root with Grommet to get access to especially ResponsiveContext
1414
export const wrapRootElement = ({ element }) => {
15-
return <Grommet>{element}</Grommet>
15+
return <Grommet><div id="app">{element}</div></Grommet>
1616
}

gatsby-ssr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ import "./prism-cb.css"
1212

1313
// Gatsby API to set Wrapper components. Wrapping entire root with Grommet to get access to especially ResponsiveContext
1414
export const wrapRootElement = ({ element }) => {
15-
return <Grommet>{element}</Grommet>
15+
return <Grommet><div id="app">{element}</div></Grommet>
1616
}

tailwind.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = {
88
theme: {
99
extend: {},
1010
},
11+
important: "#app",
1112
plugins: [],
1213
corePlugins: {
1314
preflight: false,

0 commit comments

Comments
 (0)