fix: modal backdrop color

This commit is contained in:
Pavel Laptev 2024-10-04 12:55:45 +02:00
parent e2e5ec579e
commit 5cc83a4fdb

View File

@ -135,16 +135,19 @@
}
}
dialog[open]::backdrop {
/* backdrop global */
/* NOTE: temporarily hardcoded var(--clr-overlay-bg); */
background-color: color(srgb 0 0 0 / 0.34901960784313724);
:global(dialog[open]::backdrop) {
background-color: rgba(214, 214, 214, 0.4);
animation: dialog-fade 0.15s ease-in;
}
html.dark dialog[open]::backdrop {
/* backdrop dark */
/* NOTE: temporarily hardcoded dark var(--clr-overlay-bg); */
background-color: color(srgb 0.8392156862745098 0.8392156862745098 0.8392156862745098 / 0.4);
:global(html.dark dialog[open]::backdrop) {
background-color: rgba(0, 0, 0, 0.35);
}
.modal__header {
display: flex;
padding: 16px;