Skip to content

Commit

Permalink
[Checkbox][RadioGroup][Switch] Hide bubble input from SRs (#870)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenna Smith authored Sep 17, 2021
1 parent ad27ff4 commit 716db1d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .yarn/versions/a2d4b456.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
releases:
"@radix-ui/react-checkbox": patch
"@radix-ui/react-radio-group": patch
"@radix-ui/react-switch": patch

declined:
- primitives
1 change: 1 addition & 0 deletions packages/react/checkbox/src/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ const BubbleInput = (props: BubbleInputProps) => {
return (
<input
type="checkbox"
aria-hidden
defaultChecked={isIndeterminate(checked) ? false : checked}
{...inputProps}
tabIndex={-1}
Expand Down
1 change: 1 addition & 0 deletions packages/react/radio-group/src/Radio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ const BubbleInput = (props: BubbleInputProps) => {
return (
<input
type="radio"
aria-hidden
defaultChecked={checked}
{...inputProps}
tabIndex={-1}
Expand Down
1 change: 1 addition & 0 deletions packages/react/switch/src/Switch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ const BubbleInput = (props: BubbleInputProps) => {
return (
<input
type="checkbox"
aria-hidden
defaultChecked={checked}
{...inputProps}
tabIndex={-1}
Expand Down

0 comments on commit 716db1d

Please sign in to comment.