Skip to content

Commit

Permalink
Merge pull request #802 from openSUSE/fix-layout-blur
Browse files Browse the repository at this point in the history
[web] Reintroduce blurring when sidebar is open
  • Loading branch information
dgdavid authored Oct 20, 2023
2 parents ccc3c8e + 18f0564 commit fa7037f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions web/package/cockpit-agama.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Oct 19 22:07:11 UTC 2023 - David Diaz <[email protected]>

- UI: fix CSS rule for applying grayscale and blur CSS filters to
main wrapper when the sidebar is open (gh#openSUSE/agama#802).

-------------------------------------------------------------------
Tue Oct 17 10:59:37 UTC 2023 - Imobach González Sosa <[email protected]>

Expand Down
4 changes: 3 additions & 1 deletion web/src/assets/styles/composition.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
}

body > div[inert],
body > div[aria-hidden="true"] {
body > div[aria-hidden="true"],
div#agama-main-wrapper[inert],
div#agama-main-wrapper[aria-hidden="true"] {
filter: grayscale(1) blur(2px);
}
2 changes: 1 addition & 1 deletion web/src/components/layout/Layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function Layout({ children }) {
return (
<>
<Sidebar.Target as="div" />
<div className="wrapper shadow">
<div id="agama-main-wrapper" className="wrapper shadow">
<header className="split justify-between bottom-shadow">
<h1 className="split">
<HeaderIcon.Target as="span" />
Expand Down

0 comments on commit fa7037f

Please sign in to comment.