-
Notifications
You must be signed in to change notification settings - Fork 648
Update PRC ActionList implementation to have similar semantics to PVC. #2878
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
Merged
Merged
Changes from 124 commits
Commits
Show all changes
193 commits
Select commit
Hold shift + click to select a range
0e207af
Render ActionList.Group header inside list, use li for semantic HTML …
radglob 6344ed5
Update snapshots.
radglob 6526784
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob 05ac57b
Fix snapshot. No idea why this isn't being generated correctly.
radglob bd171e0
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob ea9dbd5
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob 50ac681
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob 7e75d38
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob e16d3e1
Separate Heading from ActionList.Group.
radglob 0305f30
removed usage of actionlist.group.
radglob 5abca39
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob e2f1f4f
Fix type errors.
radglob 301e0cb
Create modern-coins-destroy.md
radglob cd0cc3e
Fix ActionList.docs.json to fix components build CI step.
radglob 7b300a1
Update generated/components.json
radglob a02012b
test(vrt): update snapshots
radglob 72e0578
test(vrt): update snapshots
radglob fdec15a
Update snapshots.
radglob 72c1903
Merge branch 'fix-actionlist-semantics' of github.com:primer/react in…
radglob 62fe375
Update themePreval snapshot and cache bust file.
radglob cb07272
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob ae0cbde
Updated snapshots.
radglob 235e4cf
Revert padding on ActionList.
radglob a713875
test(vrt): update snapshots
radglob 03a49be
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob 09c981e
Merge branch 'fix-actionlist-semantics' of github.com:primer/react in…
radglob 50ed220
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob dfdeb21
Make sure lists are surrounded by a div, fix accessibility issues in …
radglob 836dccc
Updated snapshots, fix linting error.
radglob beedc53
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob 9f45d63
Update docs.
radglob ddada04
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob baf0235
Update generated/components.json
radglob b205adc
Fix linting issues.
radglob 5ab7a96
Merge branch 'fix-actionlist-semantics' of github.com:primer/react in…
radglob ee31582
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob 691f632
Fixing some issues after the previous merge.
radglob db85f3c
Fix ActionMenu feature stories.
radglob 68d9668
Updated snapshots that shouldn't be different from main.
radglob 7cc2e0d
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob 7eb0160
disable axe check
langermank 1f384a1
Merge branch 'fix-actionlist-semantics' of https://github.com/primer/…
langermank 9c32d37
Update changeset to major patch instead of minor.
radglob 4755be0
re-gen test
langermank f75b611
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob 1530571
Add missing selectionVariant to Groups and Descriptions ActionMenu st…
radglob 2eae060
test(vrt): update snapshots
joshblack 5cc653a
Fix styling of ActionList to match prod.
radglob 86b955a
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob b457cff
Fix linting errors in ActionList.
radglob bf59217
test(vrt): update snapshots
radglob 9c8af24
Reduce padding between ActionLists in ActionMenu example.
radglob 941af96
refactor(DataTable): update optional type signatures (#2987)
joshblack 4b626cc
Textarea stories (#2988)
langermank d22bc37
Pagination design updates (#2702)
mperrotti 15f0f66
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob c6b0976
Make sure ActionList.Heading titles are bolded correctly.
radglob 30c74a0
Updated snapshots.
radglob 80ce1d5
Revert title font weight to semibold.
radglob 0d7ea4f
Update snapshots.
radglob 1c11a1b
test(vrt): update snapshots
radglob cdc2c2f
Passing sxProps to ActionList.Heading through ActionList.
radglob 261b457
More snapshot fiddling.
radglob 7ef1e60
Formatting.
radglob c3437ef
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob 9b9f50c
Use margin and padding to get spacing correct.
radglob e8ea8e3
Fix aat tests.
radglob 546cc76
Update snapshots.
radglob fcc6357
I think this should get the ActionMenu example back to what is expected.
radglob 7f673a9
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob 8fde87c
Revert "test(vrt): update snapshots"
radglob 12c9f96
Revert "test(vrt): update snapshots"
radglob f9b5d3c
Revert "test(vrt): update snapshots"
radglob 9fb5825
Revert "test(vrt): update snapshots"
radglob 46709ef
Revert "test(vrt): update snapshots"
radglob 6ca7bab
Revert "test(vrt): update snapshots"
radglob e287134
Revert "test(vrt): update snapshots"
radglob 8cb3d67
Fix underlinenav.
radglob 0c92cc6
Updated snapshots.
radglob 0c60b9b
test(vrt): update snapshots
radglob af0b9f1
Merge branch 'main' into fix-actionlist-semantics
radglob cebf9fa
Merge branch 'main' into fix-actionlist-semantics
radglob 3c19902
Merge branch 'main' into fix-actionlist-semantics
radglob 966da0e
Merge branch 'main' into fix-actionlist-semantics
radglob 888ffa9
Merge branch 'main' into fix-actionlist-semantics
radglob 38bc0a2
Merge branch 'main' into fix-actionlist-semantics
radglob ebc4008
Dialog v2: Move files, reformat stories and add e2e tests (#2984)
broccolinisoup cc3416c
feat(project): add warning, invariant utilities and dev-expression pl…
joshblack 6c0b791
chore(deps-dev): bump mdast-util-to-string from 3.1.0 to 3.1.1 (#3018)
dependabot[bot] a025937
chore(deps-dev): bump jscodeshift from 0.13.0 to 0.14.0 (#3015)
dependabot[bot] 4cfa3ec
chore(deps-dev): bump @babel/cli from 7.19.3 to 7.21.0 (#3016)
dependabot[bot] 52fb5ff
Add argTypes for HeadingPlayground ActionList story.
radglob 2a0e190
Add aria-busy declaration in relevant story instead of in component.
radglob 5f23c94
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob d01b74b
Update snapshots.
radglob 5572566
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob c3f79b1
Merge branch 'main' into fix-actionlist-semantics
radglob 894d53c
Recalculate autocomplete suggestions if the input data changes while …
iansan5653 00b238a
docs(DataTable): add reference stories for row actions (#2978)
joshblack f6901ad
chore(deps): update babel dependencies (#3005)
joshblack cef6c4f
feat(DataTable): add support for alphanumeric, datatable, and custom …
joshblack 8bd4e51
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob fe27ff5
Add new usage instructions to changeset.
radglob c5d9e26
Move ActionList.Group to versioned deprecated directory.
radglob c7d6d29
Fix references in deprecated ActionList.Group.
radglob d9bc0f1
Fix themePreval snapshot.
radglob 07bf237
Update src/ActionList/ActionList.stories.tsx
radglob 0ce6f16
Update src/ActionList/ActionList.stories.tsx
radglob 1fc5dcc
Heading playground only uses heading props.
radglob 8325c8b
Merge branch 'main' into fix-actionlist-semantics
radglob c62c625
Merge branch 'main' into fix-actionlist-semantics
radglob 70db32e
Merge branch 'main' into fix-actionlist-semantics
radglob d0969db
Merge branch 'main' into fix-actionlist-semantics
radglob df73ce7
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob 306ebc6
Merge branch 'fix-actionlist-semantics' of github.com:primer/react in…
radglob 224ce30
Use Box instead of styled elements for ActionList.Heading.
radglob fadaee5
Remove presentation role and aria-hidden from ActionList.Heading.
radglob 40c8728
Updated snapshot.
radglob f5073a6
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob 8231162
Use restricted as prop instead of headingLevel.
radglob ed52365
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob 2980871
Use slots and contexts to allow developers to declare Heading like a …
radglob 19317fe
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob fa82cbe
Linting.
radglob c684a53
Add @deprecated tag to ActionList.Group as first step towards depreca…
radglob fa1cb76
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob 4dad983
Fix type errors in ActionMenu and ActionList stories.
radglob 2eaadca
Formatting.
radglob e9d05f3
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob f38339e
Updated snapshots.
radglob f43bffc
Merge branch 'main' into fix-actionlist-semantics
radglob e83010e
Updating snapshots with --no-cache flag.
radglob 83b566a
Update docs, fix missing Group export on ActionList.
radglob 6e5b85c
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob bac295d
Terminate comment correctly.
radglob 5730a4c
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob 75b2bbd
Merge branch 'main' into fix-actionlist-semantics
radglob b9bdd8e
Regenerate ActionMenu e2e tests.
radglob d71c2ff
Add padding to fix snapshot diff.
radglob 28254cc
Change padding again.
radglob 111f825
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob b9f6aaf
Remove extra padding.
radglob 4b2d18c
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob 7d3c524
Merge branch 'main' into fix-actionlist-semantics
radglob d8a4f61
Add small amount of margin (not padding) to fix snapshot diff.
radglob 5b87b00
Less margin.
radglob afc5c9d
More margin, actually.
radglob 788fe34
I think this should work.
radglob 1b8bee7
I think this is the correct margin, something else is off.
radglob c7c867f
.
radglob 5037114
These snapshot comparisons are confusing me.
radglob 3bb7ee8
Just a little more margin.
radglob 83fafb3
Ugh.
radglob 8c86d3f
Merge branch 'main' into fix-actionlist-semantics
radglob b762d4f
test(vrt): update snapshots
radglob 4e36d22
Slightly less margin.
radglob 903037e
More tweaking.
radglob e8d6662
More tweaking.
radglob 7aa36bf
Merge branch 'main' into fix-actionlist-semantics
radglob 7b0ea4b
Disable animations on actionmenu test to see if it helps generate the…
radglob fb50425
Merge branch 'main' into fix-actionlist-semantics
radglob 8dd1ef4
Merge branch 'main' into fix-actionlist-semantics
radglob 80350f4
Merge branch 'main' into fix-actionlist-semantics
radglob df8cdce
test(vrt): update snapshots
radglob fa4b6cc
Don't animate Multiple Sections e2e test.
radglob 7ab0d36
Format file.
radglob 81a1730
test(vrt): update snapshots
radglob 7078a00
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob 70e869d
Revert snapshots to match main.
radglob 49ad824
Update snapshots again.
radglob d6e3b7d
Build snapshots without cache.
radglob 183a234
Merge branch 'main' into fix-actionlist-semantics
radglob 2ac346c
Remove lingering references to headingProps.
radglob 665ec03
Update generated/components.json
radglob 38ee183
chore(deps): bump react-intersection-observer from 9.4.1 to 9.4.3 (#3…
dependabot[bot] 88be73f
chore(deps-dev): bump jest-fail-on-console from 3.0.2 to 3.1.1 (#3180)
dependabot[bot] dbb3950
chore(deps-dev): bump unist-util-find-before from 3.0.0 to 3.0.1 (#3179)
dependabot[bot] b65da55
fix(PageLayout): update Pane to warn instead of error (#3160)
joshblack 4f158d4
Refactor(PageLayout): use Playwright for interaction tests instead of…
radglob a2154aa
Delete docs migration-related code (#3187)
colebemis 1cc0e32
Docs(Tooltip): Adds `defaultValue` of tooltip direction to documentat…
edersonlucas 87ce3fd
chore(project): update test-e2e docker image (#3183)
joshblack 8898058
feat(project): add subpath pattern to package.json to restrict intern…
joshblack 4e77baa
Ensure disabled invisible buttons have the right text color. (#3185)
radglob bbf270b
Refactor(Overlay): move files to folder. (#3191)
radglob 7dcb133
Refactor(Text): move files to directory, add storybook and e2e tests.…
radglob 6313e9d
Reduce ❌ for forks (#2283)
jsoref f54e5c0
Setup snapshots for visual regression for experimental/Button2 (#3181)
siddharthkp 4a1fa09
Version Packages (#3106)
primer-css d97027f
Bug fix: `ButtonGroup` borders (#3198)
langermank d5534a2
Refactor(Portal): move stories into Portal directory. (#3188)
radglob 831c0d3
Use SSR-compatible slot implementation in ActionList/NavList (#3173)
colebemis 72cd916
Merge branch 'main' of github.com:primer/react into fix-actionlist-se…
radglob 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,38 @@ | ||
| --- | ||
| "@primer/react": major | ||
| --- | ||
|
|
||
| Update PRC ActionList implementation to have similar semantics to PVC. | ||
| * Removes `ActionList.Group`. | ||
| * Adds `ActionList.Heading` to be used for labelling children in an `ActionList`. | ||
| * Adds `headingProps` prop to `ActionList` for adding headings that label internal lists correctly. | ||
|
|
||
| ActionList.Groups inside an ActionList generated inaccessible markup. Previous usage: | ||
| ``` | ||
| <ActionList> | ||
| <ActionList.Group title="Actions"> | ||
| <ActionList.Item>Create</ActionList.Item> | ||
| <ActionList.Item>Read</ActionList.Item> | ||
| <ActionList.Item>Update</ActionList.Item> | ||
| <ActionList.Item>Delete</ActionList.Item> | ||
| </ActionList.Group> | ||
| <ActionList.Group> | ||
| ... | ||
| </ActionList.Group> | ||
| </ActionList> | ||
| ``` | ||
|
|
||
| Instead, use `ActionList`s and stack them as needed. | ||
| ``` | ||
| <div> | ||
| <ActionList headingProps={{ title: "Actions" }}> | ||
| <ActionList.Item>Create</ActionList.Item> | ||
| <ActionList.Item>Read</ActionList.Item> | ||
| <ActionList.Item>Update</ActionList.Item> | ||
| <ActionList.Item>Delete</ActionList.Item> | ||
| </ActionList> | ||
| <ActionList> | ||
| ... | ||
| </ActionList> | ||
| </div> | ||
| ``` | ||
Binary file added
BIN
+30.4 KB
...onMenu.test.ts-snapshots/ActionMenu-Multiple-Sections-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 added
BIN
+32.7 KB
...ActionMenu.test.ts-snapshots/ActionMenu-Multiple-Sections-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 added
BIN
+29.6 KB
...enu.test.ts-snapshots/ActionMenu-Multiple-Sections-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 added
BIN
+30.4 KB
...onents/ActionMenu.test.ts-snapshots/ActionMenu-Multiple-Sections-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 added
BIN
+30.4 KB
...onMenu.test.ts-snapshots/ActionMenu-Multiple-Sections-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 added
BIN
+29.2 KB
...nMenu.test.ts-snapshots/ActionMenu-Multiple-Sections-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 added
BIN
+29.3 KB
...nu.test.ts-snapshots/ActionMenu-Multiple-Sections-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 added
BIN
+29.2 KB
...nents/ActionMenu.test.ts-snapshots/ActionMenu-Multiple-Sections-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 added
BIN
+29.2 KB
...nMenu.test.ts-snapshots/ActionMenu-Multiple-Sections-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
+40 Bytes
(100%)
...eNav-UnderlineNav-Interactions-dark-dimmed-Overflow-interaction-vrt-3-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
-22 Bytes
(100%)
...derlineNav-Interactions-dark-high-contrast-Overflow-interaction-vrt-3-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
+5 Bytes
(100%)
...-UnderlineNav-Interactions-dark-tritanopia-Overflow-interaction-vrt-3-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
+5 Bytes
(100%)
...UnderlineNav-Interactions-light-tritanopia-Overflow-interaction-vrt-3-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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.
Can we update the changelog with ActionList.Heading API?
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.
@radglob I think this was resolved without an update 🤔