Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export const buttonBarItemCss = css`

&[data-selected=true] {
background: ${colors.palette.neutralLight};
box-shadow: inset 0 0 0 0.1rem ${colors.palette.pale};
}
&:hover:not([data-selected=true]) {
background: ${colors.palette.neutralLighter};
Expand Down
2 changes: 2 additions & 0 deletions src/components/ToggleButtonGroup/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ export const StyledToggleButton = styled(ToggleButton)`

&[data-selected] {
background-color: ${colors.palette.neutralLighter};
// achieve a 2px border effect without disrupting layout
box-shadow: inset 0 0 0 0.1rem ${colors.palette.pale};
}

&[data-disabled] {
Expand Down
6 changes: 3 additions & 3 deletions src/components/__snapshots__/ButtonBar.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`ButtonBar renders 1`] = `
<DocumentFragment>
<div
class="sc-gsnTZi bqPtVr"
class="sc-gsnTZi hYiJLm"
>
<a>
One
Expand All @@ -18,7 +18,7 @@ exports[`ButtonBar renders 1`] = `
exports[`ButtonBar renders large size 1`] = `
<DocumentFragment>
<div
class="sc-gsnTZi eOLdKk"
class="sc-gsnTZi hZAvUF"
>
<button>
One
Expand All @@ -35,7 +35,7 @@ exports[`ButtonBar renders large size 1`] = `
exports[`ButtonBar renders small size 1`] = `
<DocumentFragment>
<div
class="sc-gsnTZi fgJhCT"
class="sc-gsnTZi gFPpQi"
>
<button>
One
Expand Down
6 changes: 3 additions & 3 deletions src/components/__snapshots__/Tabs.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exports[`Tabs component button-bar styling renders 1`] = `
data-react-aria-hidden="true"
/>
<div
class="sc-bczRLJ kWkDUg"
class="sc-bczRLJ iBDygX"
data-orientation="horizontal"
data-rac=""
>
Expand Down Expand Up @@ -82,7 +82,7 @@ exports[`Tabs component button-bar styling renders large size 1`] = `
data-react-aria-hidden="true"
/>
<div
class="sc-bczRLJ kTnZrf"
class="sc-bczRLJ feXGds"
data-orientation="horizontal"
data-rac=""
>
Expand Down Expand Up @@ -158,7 +158,7 @@ exports[`Tabs component button-bar styling renders small size 1`] = `
data-react-aria-hidden="true"
/>
<div
class="sc-bczRLJ kFnuyo"
class="sc-bczRLJ kAIoyP"
data-orientation="horizontal"
data-rac=""
>
Expand Down
30 changes: 15 additions & 15 deletions src/components/__snapshots__/ToggleButtonGroup.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exports[`ToggleButtonGroup matches snapshot with selectionMode multiple 1`] = `
>
<button
aria-pressed={true}
className="sc-dkzDqf ivRDBW"
className="sc-dkzDqf kCUTAu"
data-button-id="red"
data-rac=""
data-react-aria-pressable={true}
Expand All @@ -39,7 +39,7 @@ exports[`ToggleButtonGroup matches snapshot with selectionMode multiple 1`] = `
</button>
<button
aria-pressed={false}
className="sc-dkzDqf ivRDBW"
className="sc-dkzDqf kCUTAu"
data-button-id="green"
data-rac=""
data-react-aria-pressable={true}
Expand All @@ -64,7 +64,7 @@ exports[`ToggleButtonGroup matches snapshot with selectionMode multiple 1`] = `
</button>
<button
aria-pressed={false}
className="sc-dkzDqf ivRDBW"
className="sc-dkzDqf kCUTAu"
data-button-id="blue"
data-rac=""
data-react-aria-pressable={true}
Expand All @@ -89,7 +89,7 @@ exports[`ToggleButtonGroup matches snapshot with selectionMode multiple 1`] = `
</button>
<button
aria-pressed={false}
className="sc-dkzDqf ivRDBW"
className="sc-dkzDqf kCUTAu"
data-button-id="yellow"
data-rac=""
data-react-aria-pressable={true}
Expand All @@ -114,7 +114,7 @@ exports[`ToggleButtonGroup matches snapshot with selectionMode multiple 1`] = `
</button>
<button
aria-pressed={false}
className="sc-dkzDqf ivRDBW"
className="sc-dkzDqf kCUTAu"
data-button-id="orange"
data-rac=""
data-react-aria-pressable={true}
Expand Down Expand Up @@ -153,7 +153,7 @@ exports[`ToggleButtonGroup matches snapshot with selectionMode single 1`] = `
>
<button
aria-checked={true}
className="sc-dkzDqf ivRDBW"
className="sc-dkzDqf kCUTAu"
data-button-id="red"
data-rac=""
data-react-aria-pressable={true}
Expand All @@ -180,7 +180,7 @@ exports[`ToggleButtonGroup matches snapshot with selectionMode single 1`] = `
</button>
<button
aria-checked={false}
className="sc-dkzDqf ivRDBW"
className="sc-dkzDqf kCUTAu"
data-button-id="green"
data-rac=""
data-react-aria-pressable={true}
Expand All @@ -206,7 +206,7 @@ exports[`ToggleButtonGroup matches snapshot with selectionMode single 1`] = `
</button>
<button
aria-checked={false}
className="sc-dkzDqf ivRDBW"
className="sc-dkzDqf kCUTAu"
data-button-id="blue"
data-rac=""
data-react-aria-pressable={true}
Expand All @@ -232,7 +232,7 @@ exports[`ToggleButtonGroup matches snapshot with selectionMode single 1`] = `
</button>
<button
aria-checked={false}
className="sc-dkzDqf ivRDBW"
className="sc-dkzDqf kCUTAu"
data-button-id="yellow"
data-rac=""
data-react-aria-pressable={true}
Expand All @@ -258,7 +258,7 @@ exports[`ToggleButtonGroup matches snapshot with selectionMode single 1`] = `
</button>
<button
aria-checked={false}
className="sc-dkzDqf ivRDBW"
className="sc-dkzDqf kCUTAu"
data-button-id="orange"
data-rac=""
data-react-aria-pressable={true}
Expand Down Expand Up @@ -298,7 +298,7 @@ exports[`ToggleButtonGroup matches snapshot with selectionMode undefined 1`] = `
>
<button
aria-checked={true}
className="sc-dkzDqf ivRDBW"
className="sc-dkzDqf kCUTAu"
data-button-id="red"
data-rac=""
data-react-aria-pressable={true}
Expand All @@ -325,7 +325,7 @@ exports[`ToggleButtonGroup matches snapshot with selectionMode undefined 1`] = `
</button>
<button
aria-checked={false}
className="sc-dkzDqf ivRDBW"
className="sc-dkzDqf kCUTAu"
data-button-id="green"
data-rac=""
data-react-aria-pressable={true}
Expand All @@ -351,7 +351,7 @@ exports[`ToggleButtonGroup matches snapshot with selectionMode undefined 1`] = `
</button>
<button
aria-checked={false}
className="sc-dkzDqf ivRDBW"
className="sc-dkzDqf kCUTAu"
data-button-id="blue"
data-rac=""
data-react-aria-pressable={true}
Expand All @@ -377,7 +377,7 @@ exports[`ToggleButtonGroup matches snapshot with selectionMode undefined 1`] = `
</button>
<button
aria-checked={false}
className="sc-dkzDqf ivRDBW"
className="sc-dkzDqf kCUTAu"
data-button-id="yellow"
data-rac=""
data-react-aria-pressable={true}
Expand All @@ -403,7 +403,7 @@ exports[`ToggleButtonGroup matches snapshot with selectionMode undefined 1`] = `
</button>
<button
aria-checked={false}
className="sc-dkzDqf ivRDBW"
className="sc-dkzDqf kCUTAu"
data-button-id="orange"
data-rac=""
data-react-aria-pressable={true}
Expand Down
Loading