-
Notifications
You must be signed in to change notification settings - Fork 616
Refactor(ActionList): ActionList.Item should render content as a button if parent is not interactive. #3284
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 all commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
da778f2
Using button as the underlying tag for ActionList.Item content.
radglob 6f17814
Fix subnav layout.
radglob ea0d12a
Changing ActionList content to button if the top-level is not a butto…
radglob ee3e4a1
Fix issue where ActionList.Item content would render as a button insi…
radglob c5ae19e
Merge branch 'main' of github.com:primer/react into refactor-actionli…
radglob 6fa5741
Create purple-crabs-matter.md
radglob 31d5358
test(vrt): update snapshots
radglob 3aec9d8
Fix bug with MenuContext not being exported properly.
radglob 73b9f4f
Fix color violation in ActionList.Item.
radglob 836ae65
Formatting, update snapshots.
radglob 08e4496
Merge branch 'main' into refactor-actionlist-item-as-button
radglob ba6d863
test(vrt): update snapshots
radglob e91fb6f
Fix a11y violation in ActionList story.
radglob a889d26
Formatting.
radglob 24463e1
Fix ts-ignore comment.
radglob af1d7a0
Adjust line-height when button is rendered.
radglob 7cb37b9
Revert "test(vrt): update snapshots"
radglob dc717d5
Revert "test(vrt): update snapshots"
radglob 3763951
Update snapshots.
radglob 0a18def
Remove flexGrow from ActionList.Item to remove extra 1px vertical hei…
radglob 07630f6
Set padding to 0 and put flexGrow back to fix padding issue for Actio…
radglob 532c7c2
Fix ActionList text wrap story.
radglob 5d692fd
Fix underlinenav story by checking ActionList.Item if as prop is a.
radglob 7beeee3
Merge branch 'main' into refactor-actionlist-item-as-button
radglob cdc8ebd
Merge branch 'main' into refactor-actionlist-item-as-button
radglob a1f3abb
Merge branch 'main' into refactor-actionlist-item-as-button
radglob ef12dc8
Update snapshots and formatting.
radglob fabb84c
Merge branch 'main' into refactor-actionlist-item-as-button
radglob 6e6ccdd
Update snapshots.
radglob 3f03a12
If ActionList.Item content is rendered as a button, remove tabIndex f…
radglob ff27e8d
Fix various layout edge cases.
radglob 6a63ddd
ts-ignore event handlers on ItemWrapper.
radglob 212bee9
Update snapshots.
radglob 1a32b5a
Merge branch 'main' of github.com:primer/react into refactor-actionli…
radglob bf8602d
Revert fontWeight config that differed from production docs.
radglob e12bc40
Pass selectionVariant prop illegally in UnderlineNav story to fix iss…
radglob 43c1606
Merge branch 'main' into refactor-actionlist-item-as-button
radglob a7478a5
Merge branch 'main' into refactor-actionlist-item-as-button
radglob 4af4dbf
Merge branch 'main' into refactor-actionlist-item-as-button
radglob 7525135
Merge branch 'main' into refactor-actionlist-item-as-button
radglob 388426e
Merge branch 'main' into refactor-actionlist-item-as-button
radglob 31f965a
Merge branch 'main' into refactor-actionlist-item-as-button
radglob 7020729
Merge branch 'main' into refactor-actionlist-item-as-button
radglob 6d74cbf
Merge branch 'main' into refactor-actionlist-item-as-button
radglob 7e32d58
Merge branch 'main' into refactor-actionlist-item-as-button
radglob be3676e
fix: prevent closing menu when `event.preventDefault()` is called on …
radglob e8449c8
Merge branch 'main' of github.com:primer/react into refactor-actionli…
radglob fe0825a
Merge branch 'main' into refactor-actionlist-item-as-button
radglob d7fe4a9
Merge branch 'main' into refactor-actionlist-item-as-button
radglob 2a624e6
Merge branch 'main' into refactor-actionlist-item-as-button
radglob 44faa16
Merge branch 'main' into refactor-actionlist-item-as-button
radglob ecd0a34
Merge branch 'main' into refactor-actionlist-item-as-button
radglob e0d5c14
Merge branch 'main' of github.com:primer/react into refactor-actionli…
radglob afd0bec
Check for tabIndex value in isTopLevelInteractive.
radglob 9903c8d
Reference styles in updated menuProps.
radglob fae7d6c
Updated snapshots.
radglob 9cb4d31
Merge branch 'main' into refactor-actionlist-item-as-button
radglob 3f416be
Fix padding setting instead of using values from styles, which are in…
radglob 8455a42
Merge branch 'main' into refactor-actionlist-item-as-button
radglob 2725253
Update snapshots.
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,5 @@ | ||
--- | ||
"@primer/react": patch | ||
--- | ||
|
||
Refactor(ActionList): ActionList.Item should render content as a button if parent is not interactive. |
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 was deleted.
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
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
File renamed without changes.
File renamed without changes.
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.
Uh oh!
There was an error while loading. Please reload this page.