Skip to content

Commit

Permalink
fix: keep current drop shadow with stroke on dark theme (#2451)
Browse files Browse the repository at this point in the history
  • Loading branch information
rivka-ungar authored Oct 6, 2024
1 parent c4a55f5 commit 197fc6f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}

.typePopover {
box-shadow: var(--experimental-dialog-border-in-dark-themes, var(--box-shadow-medium));
box-shadow: var(--experimental-dialog-border-in-dark-themes, 0 0 0 0 transparent), var(--box-shadow-medium);
border-radius: var(--border-radius-medium);
background-color: var(--secondary-background-color);
}
Expand Down
4 changes: 3 additions & 1 deletion packages/core/src/components/Dropdown/Dropdown.styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,9 @@ const menu =
...getFont(),
color: getCSSVar("primary-text-color"),
backgroundColor: getCSSVar("dialog-background-color"),
boxShadow: getCSSVar("experimental-dropdown-border-in-dark-themes", getCSSVar("box-shadow-small"))
boxShadow: `${getCSSVar("experimental-dropdown-border-in-dark-themes", "0 0 0 0 transparent")}, ${getCSSVar(
"box-shadow-small"
)}`
};

if (!insideOverflowContainer && !insideOverflowWithTransformContainer) return baseStyle;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ exports[`Dropdown renders correctly snapshot driver should open menu on click if
</div>
</div>
<div
class="dropdownMenuWrapper withoutAnimation css-1ysewv0-menu"
class="dropdownMenuWrapper withoutAnimation css-6yg65t-menu"
>
<div
class=" css-bknh9q-Component"
Expand Down Expand Up @@ -959,7 +959,7 @@ exports[`Dropdown renders correctly snapshot driver should use virtualization if
</div>
</div>
<div
class="dropdownMenuWrapper withoutAnimation css-1ysewv0-menu"
class="dropdownMenuWrapper withoutAnimation css-6yg65t-menu"
>
<div
class=""
Expand Down

0 comments on commit 197fc6f

Please sign in to comment.