Skip to content

Commit

Permalink
fix dialog/drawer borders in WHC
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed Nov 14, 2022
1 parent 6167993 commit 36e677d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/dialog/dialog.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ export default css`
box-shadow: var(--sl-shadow-x-large);
}
@media (forced-colors: active) {
.dialog__panel {
border: solid 1px var(--sl-color-neutral-0);
}
}
.dialog__panel:focus {
outline: none;
}
Expand Down
6 changes: 6 additions & 0 deletions src/components/drawer/drawer.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ export default css`
outline: none;
}
@media (forced-colors: active) {
.drawer__panel {
border: solid 1px var(--sl-color-neutral-0);
}
}
.drawer--top .drawer__panel {
top: 0;
inset-inline-end: auto;
Expand Down

0 comments on commit 36e677d

Please sign in to comment.