element-web/res/css/views
David Baker 9254e9562e
Don't reference the notification levels by colour (#12138)
* Don't reference the notification levels by colour

We're about to change what colours they are so either we'd have to rename
a bunch of constants. We may as well make things not reference what colour
anything is in the actual UI. Hopefully these constants are clear enough.

 * Rename NotificationColor -> NotificationLevel
 * Red -> Highlight
 * Grey -> Notification
 * Bold -> Activity
 * Anywhere else that calls it 'color' -> 'level'

Also fixes some weird mixes of US & UK English.

It turns out this is referenced in... quite a lot of places, so this is
quite a large PR. It can't really be much smaller, sorry.

* One test rename & some hiding due to ts-ignore

* More hiding behind ts-ignore

* Damn you, @ts-ignore...

* Fix test CSS values

* Missed some colour -> level

Co-authored-by: Florian Duros <florianduros@element.io>

* Change other instances of variables renamed in suggestion

* Update new test for renames

---------

Co-authored-by: Florian Duros <florianduros@element.io>
2024-01-15 15:25:48 +00:00
..
audio_messages Fix blowout of waveform of the voice message player on narror UI 2023-02-20 23:55:59 +09:00
auth Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
avatars Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
beta Compound color pass (#11079) 2023-07-12 17:46:49 +00:00
context_menus Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
dialogs Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
directory Rename PostCSS files to .pcss (#9013) 2022-07-15 14:53:23 +01:00
elements Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
emojipicker Compound Typography pass (#11103) 2023-06-29 10:30:25 +00:00
location Apply prettier formatting 2022-12-12 12:24:14 +01:00
messages Use Compound tooltips more widely (#12128) 2024-01-11 11:49:24 +00:00
polls/pollHistory Poll history - make poll history independent from dialogs (#10349) 2023-03-12 20:22:30 +00:00
right_panel Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
room_settings Fix: <detail> HTML elements clickable area too wide. (#11666) 2023-10-12 08:50:49 +00:00
rooms Don't reference the notification levels by colour (#12138) 2024-01-15 15:25:48 +00:00
settings Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
spaces Compound Typography pass (#11103) 2023-06-29 10:30:25 +00:00
terms Compound Typography pass (#11103) 2023-06-29 10:30:25 +00:00
toasts Compound Typography pass (#11103) 2023-06-29 10:30:25 +00:00
typography Compound Typography pass (#11103) 2023-06-29 10:30:25 +00:00
user-onboarding Compound Typography pass (#11103) 2023-06-29 10:30:25 +00:00
verification Default to system emoji font (#11925) 2023-11-23 13:04:05 +00:00
voip Update element call embedding UI (#12056) 2023-12-20 12:39:57 +00:00