Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: remove effect and css selector for body that required body class…
…list change
  • Loading branch information
cmunns committed Aug 8, 2022
commit 9a153d61ac39ee8b9d080483063d8a7eb8b4d1c5
5 changes: 0 additions & 5 deletions packages/website/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ const App = ({ Component, pageProps }) => {
const productApp = productRoutes.includes(pathname);
const pageClass = pathname.includes('docs') ? 'docs-site' : productApp ? 'product-app' : 'marketing-site';

useEffect(() => {
document.querySelector('body')?.classList.remove('docs-site', 'product-app', 'marketing-site');
document.querySelector('body')?.classList.add(pageClass);
});

return (
<AppProviders authorizationProps={{ ...pageProps }}>
<Metadata {...pageProps} />
Expand Down
2 changes: 1 addition & 1 deletion packages/website/styles/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ button {
}

// Next & Grid
body:not(.docs-site) #__next {
body #__next {
position: relative;
z-index: 2;
overflow-x: hidden;
Expand Down