Skip to content

Commit

Permalink
Make Playgrounds inert
Browse files Browse the repository at this point in the history
  • Loading branch information
veej committed Nov 24, 2023
1 parent f6cf30d commit 1b25fba
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions packages/configuration-builder/src/TokensSection/Playground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@ export function Playground({ children }: { children: Children }) {
const theme = useConfiguredTheme();

return (
<Box
borderRadius={24}
padding={40}
background="backgroundSecondary"
display="flex"
flexDirection="column"
flexGrow={1}
overflow="hidden"
>
<BentoThemeProvider theme={theme}>{children}</BentoThemeProvider>
</Box>
<div ref={(node) => node && node.setAttribute("inert", "true")}>
<Box
borderRadius={24}
padding={40}
background="backgroundSecondary"
display="flex"
flexDirection="column"
flexGrow={1}
overflow="hidden"
>
<BentoThemeProvider theme={theme}>{children}</BentoThemeProvider>
</Box>
</div>
);
}

0 comments on commit 1b25fba

Please sign in to comment.