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 41d2343
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libs/sketch/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './lib/components/sketch/sketch.component';
export * from './lib/components/select';
export * from './lib/components/list';
export * from './lib/components/dialog/dialog.component';
export * from './lib/components/dialog/dialog.component';
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 41d2343

Please sign in to comment.