-
Notifications
You must be signed in to change notification settings - Fork 662
Checkbox: replace useLayoutEffect with ref callback for indeterminate #7765
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0464be5
Checkbox: replace useLayoutEffect with ref callback for indeterminate
alexus37 4c2c54d
Add changeset
alexus37 b13ac8a
Fix lint: add eslint-disable for intentional checked dep
alexus37 fe34004
Update aria-checked attribute logic in Checkbox
alexus37 3341b60
chore: auto-fix lint and formatting issues
alexus37 349f99a
Merge branch 'main' into checkbox-ref-callback-indeterminate
alexus37 00e513e
Update Checkbox.test.tsx
alexus37 ee094cc
test(vrt): update AvatarStack snapshots to fix vrt-runner (2) failures
Copilot ee9ee04
refactor(Checkbox): clarify eslint-disable comment and extract ariaCh…
Copilot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@primer/react": patch | ||
| --- | ||
|
|
||
| Checkbox: replace useLayoutEffect with ref callback for setting indeterminate state |
Binary file modified
BIN
-58 Bytes
(99%)
...AvatarStack.test.ts-snapshots/AvatarStack-Align-Right-dark-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-86 Bytes
(99%)
...nts/AvatarStack.test.ts-snapshots/AvatarStack-Align-Right-dark-dimmed-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-18 Bytes
(100%)
...tarStack.test.ts-snapshots/AvatarStack-Align-Right-dark-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-58 Bytes
(99%)
...AvatarStack.test.ts-snapshots/AvatarStack-Align-Right-dark-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-73 Bytes
(99%)
...pshots/AvatarStack-Custom-Size-On-Children-Responsive-dark-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-80 Bytes
(99%)
...-snapshots/AvatarStack-Custom-Size-On-Children-Responsive-dark-dimmed-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-73 Bytes
(99%)
...ots/AvatarStack-Custom-Size-On-Children-Responsive-dark-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-73 Bytes
(99%)
...test.ts-snapshots/AvatarStack-Custom-Size-On-Children-Responsive-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-73 Bytes
(99%)
...pshots/AvatarStack-Custom-Size-On-Children-Responsive-dark-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-352 Bytes
(95%)
...shots/AvatarStack-Custom-Size-On-Children-Responsive-light-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-352 Bytes
(95%)
...ts/AvatarStack-Custom-Size-On-Children-Responsive-light-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-352 Bytes
(95%)
...est.ts-snapshots/AvatarStack-Custom-Size-On-Children-Responsive-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-352 Bytes
(95%)
...shots/AvatarStack-Custom-Size-On-Children-Responsive-light-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-84 Bytes
(99%)
...test.ts-snapshots/AvatarStack-Custom-Size-On-Children-dark-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-74 Bytes
(99%)
...ack.test.ts-snapshots/AvatarStack-Custom-Size-On-Children-dark-dimmed-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-66 Bytes
(99%)
...t.ts-snapshots/AvatarStack-Custom-Size-On-Children-dark-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-84 Bytes
(99%)
...vatarStack.test.ts-snapshots/AvatarStack-Custom-Size-On-Children-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-84 Bytes
(99%)
...test.ts-snapshots/AvatarStack-Custom-Size-On-Children-dark-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-206 Bytes
(97%)
...est.ts-snapshots/AvatarStack-Custom-Size-On-Children-light-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-206 Bytes
(97%)
....ts-snapshots/AvatarStack-Custom-Size-On-Children-light-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-206 Bytes
(97%)
...atarStack.test.ts-snapshots/AvatarStack-Custom-Size-On-Children-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-206 Bytes
(97%)
...est.ts-snapshots/AvatarStack-Custom-Size-On-Children-light-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-548 Bytes
(95%)
...napshots/AvatarStack-Custom-Size-On-Parent-Responsive-dark-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-596 Bytes
(94%)
...ts-snapshots/AvatarStack-Custom-Size-On-Parent-Responsive-dark-dimmed-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-548 Bytes
(95%)
...k.test.ts-snapshots/AvatarStack-Custom-Size-On-Parent-Responsive-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-548 Bytes
(95%)
...napshots/AvatarStack-Custom-Size-On-Parent-Responsive-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-959 Bytes
(91%)
...apshots/AvatarStack-Custom-Size-On-Parent-Responsive-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-953 Bytes
(91%)
...hots/AvatarStack-Custom-Size-On-Parent-Responsive-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-953 Bytes
(91%)
....test.ts-snapshots/AvatarStack-Custom-Size-On-Parent-Responsive-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
-953 Bytes
(91%)
...apshots/AvatarStack-Custom-Size-On-Parent-Responsive-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-73 Bytes
(99%)
...k.test.ts-snapshots/AvatarStack-Custom-Size-On-Parent-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-80 Bytes
(99%)
...Stack.test.ts-snapshots/AvatarStack-Custom-Size-On-Parent-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
-73 Bytes
(99%)
...est.ts-snapshots/AvatarStack-Custom-Size-On-Parent-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-80 Bytes
(99%)
.../AvatarStack.test.ts-snapshots/AvatarStack-Custom-Size-On-Parent-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
-73 Bytes
(99%)
...k.test.ts-snapshots/AvatarStack-Custom-Size-On-Parent-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-352 Bytes
(95%)
....test.ts-snapshots/AvatarStack-Custom-Size-On-Parent-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-352 Bytes
(95%)
...st.ts-snapshots/AvatarStack-Custom-Size-On-Parent-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-358 Bytes
(95%)
...AvatarStack.test.ts-snapshots/AvatarStack-Custom-Size-On-Parent-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
-352 Bytes
(95%)
....test.ts-snapshots/AvatarStack-Custom-Size-On-Parent-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-74 Bytes
(99%)
...test.ts-snapshots/AvatarStack-Disable-Expand-On-Hover-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-74 Bytes
(99%)
...ack.test.ts-snapshots/AvatarStack-Disable-Expand-On-Hover-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
-66 Bytes
(99%)
...t.ts-snapshots/AvatarStack-Disable-Expand-On-Hover-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-84 Bytes
(99%)
...vatarStack.test.ts-snapshots/AvatarStack-Disable-Expand-On-Hover-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
-84 Bytes
(99%)
...test.ts-snapshots/AvatarStack-Disable-Expand-On-Hover-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-206 Bytes
(97%)
...est.ts-snapshots/AvatarStack-Disable-Expand-On-Hover-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-208 Bytes
(96%)
....ts-snapshots/AvatarStack-Disable-Expand-On-Hover-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-206 Bytes
(97%)
...atarStack.test.ts-snapshots/AvatarStack-Disable-Expand-On-Hover-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
-206 Bytes
(97%)
...est.ts-snapshots/AvatarStack-Disable-Expand-On-Hover-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-57 Bytes
(99%)
...tack.test.ts-snapshots/AvatarStack-With-Link-Wrappers-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-47 Bytes
(99%)
...tarStack.test.ts-snapshots/AvatarStack-With-Link-Wrappers-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
-38 Bytes
(99%)
...k.test.ts-snapshots/AvatarStack-With-Link-Wrappers-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-57 Bytes
(99%)
...nts/AvatarStack.test.ts-snapshots/AvatarStack-With-Link-Wrappers-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
-57 Bytes
(99%)
...tack.test.ts-snapshots/AvatarStack-With-Link-Wrappers-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-196 Bytes
(97%)
...ack.test.ts-snapshots/AvatarStack-With-Link-Wrappers-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-133 Bytes
(98%)
....test.ts-snapshots/AvatarStack-With-Link-Wrappers-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-196 Bytes
(97%)
...ts/AvatarStack.test.ts-snapshots/AvatarStack-With-Link-Wrappers-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
-196 Bytes
(97%)
...ack.test.ts-snapshots/AvatarStack-With-Link-Wrappers-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-188 Bytes
(97%)
...ack.test.ts-snapshots/AvatarStack-With-Square-Avatars-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-98 Bytes
(98%)
...arStack.test.ts-snapshots/AvatarStack-With-Square-Avatars-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
-78 Bytes
(99%)
...ts/AvatarStack.test.ts-snapshots/AvatarStack-With-Square-Avatars-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
-78 Bytes
(99%)
...ack.test.ts-snapshots/AvatarStack-With-Square-Avatars-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-138 Bytes
(97%)
...ck.test.ts-snapshots/AvatarStack-With-Square-Avatars-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-175 Bytes
(97%)
...test.ts-snapshots/AvatarStack-With-Square-Avatars-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-138 Bytes
(97%)
...s/AvatarStack.test.ts-snapshots/AvatarStack-With-Square-Avatars-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
-138 Bytes
(97%)
...ck.test.ts-snapshots/AvatarStack-With-Square-Avatars-light-tritanopia-linux.png
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
eslint-disable-next-line react-hooks/exhaustive-depslooks unnecessary here because the dependency list is already explicit and complete. Keeping this suppression can hide real missing-dependency issues in future edits; consider removing the disable and leaving the explanatory comment aboutcheckedtriggering a rerun.