Skip to content

Commit

Permalink
don't use backdrop for dialogs
Browse files Browse the repository at this point in the history
The backdrop can make dialogs look really bad when there are large areas
with dark color right behind the dialog (see screenshot).
  • Loading branch information
mawinter69 committed Aug 22, 2024
1 parent c72a895 commit c1335f8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion war/src/main/scss/abstracts/_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ $semantics: (
--dialog-backdrop-background: hsla(240, 10%, 20%, 0.8);
}

--dialog-backdrop-filter: brightness(3) blur(50px);
--dialog-box-shadow: 0 10px 40px rgba(0, 0, 20, 0.15),
0 2px 15px rgba(0, 0, 20, 0.05),
inset 0 0 2px 2px rgba(255, 255, 255, 0.025);
Expand Down
2 changes: 0 additions & 2 deletions war/src/main/scss/components/_dialogs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ $jenkins-dialog-padding: 1.3rem;
.jenkins-dialog {
border-radius: 0.6rem;
border: none;
background: transparent;
box-shadow: var(--dialog-box-shadow);
backdrop-filter: var(--dialog-backdrop-filter);
animation: jenkins-dialog-animate-in 0.25s cubic-bezier(0, 0.68, 0.5, 1.5);
overflow: hidden;
padding: $jenkins-dialog-padding 0 0 0;
Expand Down

0 comments on commit c1335f8

Please sign in to comment.