Skip to content

Commit

Permalink
fix(core): 馃悰 do not insert pseudo elements to input element
Browse files Browse the repository at this point in the history
It is invalid and does not work in Firefox.

Closes: #689
  • Loading branch information
alistair3149 committed Jul 16, 2023
1 parent 5ccab9e commit 0e42030
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
31 changes: 15 additions & 16 deletions resources/skins.citizen.styles/components/Header.less
Original file line number Diff line number Diff line change
Expand Up @@ -180,26 +180,25 @@
/*
* Add overlay to menus as affordnance
* TODO: We should use JS to add the overlay instead of abusing CSS
* TODO: This does not work for TOC and Pref menu
*/
.citizen-menu-checkbox-checkbox,
.citizen-button {
.citizen-header__button {
contain: initial;

&[ aria-expanded='true' ] {
&::before {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: auto;
height: auto;
background-color: var( --background-color-overlay );
content: '';
}

~ .citizen-menu-checkbox-target {
z-index: 1;
~ .citizen-header__button {
&::before {
position: fixed;
z-index: 1;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: auto;
height: auto;
background-color: var( --background-color-overlay );
content: '';
}
}
}
}
Expand Down
1 change: 1 addition & 0 deletions resources/skins.citizen.styles/components/Menu.less
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
height: 0;
padding: 0;
margin: 0;
opacity: 0;

// HACK: Fake focus styles
&:focus {
Expand Down

0 comments on commit 0e42030

Please sign in to comment.