Skip to content

Commit 38d5a5f

Browse files
Reinstate box shadow for HideSplitViewButton
Maintain focusVisible styling as an override.
1 parent d7db7d7 commit 38d5a5f

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/common/SplitView/HideSplitViewButton.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ const HideSplitViewButton = React.forwardRef(
8282
// ghost-over-gray values).
8383
_hover: { background: "gray.100" },
8484
_active: { background: "gray.200" },
85+
// Likewise a flat boxShadow from a call site (e.g. Simulator's
86+
// md shadow) beats the recipe-layer focus ring — restate it.
87+
_focusVisible: { focusShadow: "outline" },
8588
color: "brand.500",
8689
zIndex: "splitViewHideButton",
8790
...cssProp,

src/simulator/Simulator.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ const Simulator = ({
110110
onClick={onSimulatorHide}
111111
splitViewShown={shown}
112112
direction="expandLeft"
113+
css={{ boxShadow: "md" }}
113114
/>
114115
</Flex>
115116
<VStack gap="5" bg="gray.75" ref={simControlsRef}>

0 commit comments

Comments
 (0)