1
0
Fork 0
forked from OpenNeo/impress
impress/app
Emi Matchu fcc17d3dcf Whoops, fix some style regressions for the React app!
Ah beans, I didn't notice when doing my Turbo fixes in
40804c1543, that I had accidentally
prevented Chakra from applying some of its usual global styles! This
caused some minor visual regressions in various parts of the app, e.g.,
the default border color for the search field in the wardrobe app
became way darker.

Here, instead of copy-pasting the styles and missing some parts, we
scope the global styles a bit more carefully: we first use
`extendTheme` with the same code as Impress 2020 to get a good
`globalStyles` function that includes Chakra's defaults, *then* delete
the key from the theme.

Then, in `ScopedCSSReset`, we use code similar to Chakra's own global
style application code: call the `globalStyles` function with the
current theme and color mode, use Chakra's `css` function to convert
values like `green.800` to CSS values, prepend our scoping rule onto
the selectors, and drop it into our Emotion CSS.

Tbh I was worried because when I first noticed this issue while on my
trip, I saw the black item search box border, and was like "ah dang,
did I destroy all the color in the app by breaking the part where
Chakra defines its CSS color variables??" And no, that's not actually
what happened, a lot of the app still had its colors!

So this was less pressing than I had thought, but still good to get
fixed!
2024-03-31 01:20:45 -07:00
..
assets Fix scoping on CSS for donate page 2024-03-13 22:13:16 -07:00
controllers Actually create user from NeoPass authentication! <3 <3 2024-03-14 19:11:06 -07:00
helpers Downgrade jQuery on homepage to be the same version as everywhere else 2024-03-13 21:38:45 -07:00
javascript Whoops, fix some style regressions for the React app! 2024-03-31 01:20:45 -07:00
mailers/fundraising Move most fundraising files into a Fundraising module 2024-02-18 20:12:14 -08:00
models Oops, stop requiring a new password whenever AuthUser is changed 2024-03-14 19:20:33 -07:00
services Save manifest load info when preloading them, too 2024-02-25 16:02:36 -08:00
views Add some cheesy formatting to the placeholder NeoPass UI 2024-03-14 19:47:19 -07:00