1
0
mirror of synced 2025-12-20 02:19:14 -05:00
Commit Graph

4 Commits

Author SHA1 Message Date
Kevin Heis
f7fbba9074 Set cookies consistently (#37819) 2023-06-14 18:20:59 +00:00
Cole Bemis
bace21beb4 Fix theme mismatch (#25628)
Co-authored-by: Rachael Sewell <rachmari@github.com>
2023-05-30 13:13:55 +00:00
Peter Bengtsson
e7280bb896 silence unit test warning from useTheme (#30286) 2022-08-26 15:44:24 +00:00
Kevin Heis
04f38e4779 Parse color_mode cookie in browser (#29738)
* Parse color_mode cookie in browser

* Update useTheme.ts

* Update use-theme.js

* Update use-theme.js

* Add support for dark_high_contrast

Per https://primer.style/css/support/theming

I also checked all the color mode options, this is the only additional working with Primer 20 so far

* Remove gray bg

* Remove  type

* Use defaults instead of types for fn args

* Thicker types
2022-08-09 16:48:18 +00:00