Add CSS cascade layers for Compound, shared components, and app/web styles (#33302)

* Layer Compound and shared component CSS

* Layer app theme CSS

* Remove !important flags from ActionBarView

* Remove unnecessary !important statements from shared components

* Avoid dead code errors for *.pcss just because layer is specified after @import url

* Remove unnecessary !important styling

* Override Banner defaults in RoomStatusBarView

* Updated snaps

* Updated snaps

* Fix styling of media body in app/web

* Fix styling for Compound anchors

* Fix styling issues in app/web

* More styling fixes

* Fix a problem extracting css for HTMLExport

* Revert changes

* Fix for theme styling

* Add test to improve coverage

* Prettier

* Fix styling issues

* Add data-kind attribute to avoid global styling override

* Update screenshot that now is correct

* Revert data-kind attribute

* Handle LinkPreview styling in .pcss

* Fix flaky test: Avoid racing the lazy-loaded ManageEventIndexDialog

* Take care of review comments

* Updated snaps

* Updated snaps again after merge

* Remove !important from RoomStatusBar
This commit is contained in:
rbondesson
2026-04-30 13:54:49 +02:00
committed by GitHub
parent f2d355bb2c
commit b0ee6f5323
46 changed files with 351 additions and 166 deletions
@@ -3,13 +3,13 @@
exports[`<RoomListSearch /> renders 1`] = `
<DocumentFragment>
<div
class="_flex_4dswl_9 _view_z7ks9_8"
class="_flex_4dswl_9 _view_zk0ja_8"
data-testid="room-list-search"
role="search"
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: start; --mx-flex-gap: var(--cpd-space-2x); --mx-flex-wrap: nowrap;"
>
<button
class="_button_1nw83_8 _search_z7ks9_16 _has-icon_1nw83_60"
class="_button_1nw83_8 _search_zk0ja_16 _has-icon_1nw83_60"
data-kind="secondary"
data-size="md"
id="room-list-search-button"
@@ -29,11 +29,11 @@ exports[`<RoomListSearch /> renders 1`] = `
/>
</svg>
<span
class="_flex_4dswl_9 _search_container_z7ks9_29"
class="_flex_4dswl_9 _search_container_zk0ja_28"
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: start; --mx-flex-justify: space-between; --mx-flex-gap: 0; --mx-flex-wrap: nowrap;"
>
<span
class="_search_text_z7ks9_41"
class="_search_text_zk0ja_40"
>
Search
</span>