Skip to content

Commit

Permalink
refactor: add class to dialog for same css specificity
Browse files Browse the repository at this point in the history
  • Loading branch information
inga committed May 8, 2024
1 parent e184155 commit 07f1996
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/sketch/src/lib/components/dialog/dialog.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
--sk-dialog-backdrop-blur: 0;
}

dialog {
.sk-dialog {
width: var(--sk-dialog-width);
height: var(--sk-dialog-height);
max-width: 100%;
Expand All @@ -26,13 +26,13 @@ dialog {
background-color: transparent;
}

dialog:has(::backdrop) {
.sk-dialog:has(::backdrop) {
display: flex;
justify-content: center;
align-items: center;
}

dialog::backdrop {
.sk-dialog::backdrop {
background: var(--sk-dialog-backdrop);
backdrop-filter: blur(var(--sk-dialog-backdrop-blur));
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<dialog
class="sk-dialog"
#dialogElement
skClickBackdrop
(clickedBackdrop)="close.emit()"
Expand Down

0 comments on commit 07f1996

Please sign in to comment.