Skip to content

Commit cb71631

Browse files
authored
feat(toolbar): Tweak css reset a little more (#74666)
Just came across https://css-tricks.com/alvaro-montoro-css-one-liners-to-improve-almost-every-project/ and thought there are some easy to incorporate things that will be good for this as an sdk.
1 parent 26d86be commit cb71631

File tree

1 file changed

+13
-1
lines changed
  • static/app/components/devtoolbar/styles

1 file changed

+13
-1
lines changed

static/app/components/devtoolbar/styles/global.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,19 @@ export const globalCss = css`
5050
}
5151
}
5252
53-
* {
53+
@media (prefers-reduced-motion) {
54+
*,
55+
*::before,
56+
*::after {
57+
animation-duration: 0s !important;
58+
transition: none !important;
59+
scroll-behavior: auto !important;
60+
}
61+
}
62+
63+
*,
64+
*::before,
65+
*::after {
5466
box-sizing: border-box;
5567
}
5668

0 commit comments

Comments
 (0)