Skip to content

Commit

Permalink
Remove added test Id from globalCss
Browse files Browse the repository at this point in the history
  • Loading branch information
laisspportugal committed Dec 16, 2024
1 parent b4626bf commit 5371819
Showing 1 changed file with 41 additions and 43 deletions.
84 changes: 41 additions & 43 deletions packages/suite-base/src/components/GlobalCss.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,50 +13,48 @@ export default function GlobalCss(): React.JSX.Element {
const theme = useTheme();

return (
<div data-testid="global-css">
<GlobalStyles
styles={{
"html, body": {
boxSizing: "border-box",
margin: 0,
padding: 0,
height: "100%",
width: "100%",
<GlobalStyles
styles={{
"html, body": {
boxSizing: "border-box",
margin: 0,
padding: 0,
height: "100%",
width: "100%",

// https://github.com/necolas/normalize.css/blob/master/normalize.css#L12
lineHeight: 1.15,
},
"*, *:before, *:after": {
boxSizing: "inherit",
},
body: {
background: theme.palette.background.default,
color: theme.palette.text.primary,
font: "inherit",
fontFamily: theme.typography.body2.fontFamily,
fontFeatureSettings: theme.typography.body2.fontFeatureSettings,
fontSize: theme.typography.body2.fontSize,
fontWeight: theme.typography.body2.fontWeight,
// https://github.com/necolas/normalize.css/blob/master/normalize.css#L12
lineHeight: 1.15,
},
"*, *:before, *:after": {
boxSizing: "inherit",
},
body: {
background: theme.palette.background.default,
color: theme.palette.text.primary,
font: "inherit",
fontFamily: theme.typography.body2.fontFamily,
fontFeatureSettings: theme.typography.body2.fontFeatureSettings,
fontSize: theme.typography.body2.fontSize,
fontWeight: theme.typography.body2.fontWeight,

// Prevent scroll "bouncing" since the app workspace is not scrollable. Allows individual
// scrollable elements to be scrolled without the whole page moving (even if they don't
// preventDefault on scroll events).
overscrollBehavior: "none",
overflow: "hidden",
},
"#root": {
height: "100%",
width: "100%",
display: "flex",
flexDirection: "column",
position: "relative",
flex: "1 1 100%",
outline: "none",
overflow: "hidden",
zIndex: 0,
},
}}
/>
</div>
// Prevent scroll "bouncing" since the app workspace is not scrollable. Allows individual
// scrollable elements to be scrolled without the whole page moving (even if they don't
// preventDefault on scroll events).
overscrollBehavior: "none",
overflow: "hidden",
},
"#root": {
height: "100%",
width: "100%",
display: "flex",
flexDirection: "column",
position: "relative",
flex: "1 1 100%",
outline: "none",
overflow: "hidden",
zIndex: 0,
},
}}
/>
);
}

0 comments on commit 5371819

Please sign in to comment.