-
Notifications
You must be signed in to change notification settings - Fork 640
feat(ActionList): Combine Item and LinkItem into unified Item component #6999
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
Open
liuliu-dev
wants to merge
27
commits into
main
Choose a base branch
from
liuliu/merge-linkitem-and-item-in-actionlist
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
1e2f576
draft: LinkItemContainerNoBox, replaced all LinkItem in ActionList st…
liuliu-dev d779acf
add back _PrivateItemWrapper, change api in stories and test the dom …
liuliu-dev 1f686e8
fix tests for missing role
liuliu-dev 1704d0d
Merge remote-tracking branch 'origin/main' into liuliu/merge-linkitem…
liuliu-dev e1a6a6b
fix lint
liuliu-dev 35dc470
test(vrt): update snapshots
liuliu-dev 24995ef
update Breadcrumbs, NavList, UnderlineNav to use ActionList.Item
liuliu-dev 02f7861
Merge branch 'liuliu/merge-linkitem-and-item-in-actionlist' of https:…
liuliu-dev 1c904ac
some clean up and add changeset
liuliu-dev ebb427f
Merge remote-tracking branch 'origin/main' into liuliu/merge-linkitem…
liuliu-dev 9883e75
test(vrt): update snapshots
liuliu-dev e0635c6
type fix
liuliu-dev aa6f7f2
Merge branch 'liuliu/merge-linkitem-and-item-in-actionlist' of https:…
liuliu-dev 61ea3c1
remove unused type prop
liuliu-dev 94a2c7d
Merge remote-tracking branch 'origin/main' into liuliu/merge-linkitem…
liuliu-dev 66d6bcb
onClick?
liuliu-dev d03d6c9
seperate props
liuliu-dev a79c620
props order
liuliu-dev 5ab6dd6
clean up and docs.json
liuliu-dev 81a27de
lint fix
liuliu-dev 47de2b6
remove to
liuliu-dev 33b46fe
resolve conflicts
liuliu-dev 61eb1f1
h4 -> h2, not exporting MenuItemProps
liuliu-dev 2a1be72
Merge remote-tracking branch 'origin/main' into liuliu/merge-linkitem…
liuliu-dev d1f1272
check for href and to on as a, clean up props logic, add back 1 linki…
liuliu-dev 54ee453
remove href check for a
liuliu-dev c6f608b
Merge branch 'main' into liuliu/merge-linkitem-and-item-in-actionlist
liuliu-dev 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': major | ||
| --- | ||
|
|
||
| ActionList.Item now supports link functionality through href and other anchor attributes, deprecating the separate ActionList.LinkItem component. | ||
Binary file modified
BIN
-471 Bytes
(98%)
...onList.test.ts-snapshots/ActionList-Link-Item-Options-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
-430 Bytes
(99%)
...ActionList.test.ts-snapshots/ActionList-Link-Item-Options-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
-775 Bytes
(97%)
...ist.test.ts-snapshots/ActionList-Link-Item-Options-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
-471 Bytes
(98%)
...onents/ActionList.test.ts-snapshots/ActionList-Link-Item-Options-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
-471 Bytes
(98%)
...onList.test.ts-snapshots/ActionList-Link-Item-Options-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
-657 Bytes
(98%)
...nList.test.ts-snapshots/ActionList-Link-Item-Options-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
-800 Bytes
(97%)
...st.test.ts-snapshots/ActionList-Link-Item-Options-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
-657 Bytes
(98%)
...nents/ActionList.test.ts-snapshots/ActionList-Link-Item-Options-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
-657 Bytes
(98%)
...nList.test.ts-snapshots/ActionList-Link-Item-Options-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.
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 |
|---|---|---|
|
|
@@ -2,7 +2,6 @@ import React from 'react' | |
| import type {Meta} from '@storybook/react-vite' | ||
| import {ActionList} from '.' | ||
| import {Item} from './Item' | ||
| import {LinkItem} from './LinkItem' | ||
| import {Group} from './Group' | ||
| import {Divider} from './Divider' | ||
| import {Description} from './Description' | ||
|
|
@@ -14,7 +13,7 @@ import {AnchoredOverlay} from '../AnchoredOverlay' | |
| export default { | ||
| title: 'Components/ActionList/Dev', | ||
| component: ActionList, | ||
| subcomponents: {Item, LinkItem, Group, Divider, Description}, | ||
| subcomponents: {Item, Group, Divider, Description}, | ||
| } as Meta<typeof ActionList> | ||
|
|
||
| const users = [ | ||
|
|
@@ -261,15 +260,15 @@ export const ItemLabelStylesWithMixedDescriptions = () => ( | |
| Item with inline description | ||
| <ActionList.Description variant="block">Block description</ActionList.Description> | ||
| </ActionList.LinkItem> | ||
| <ActionList.LinkItem> | ||
| <ActionList.Item> | ||
| Item with inline description | ||
| <ActionList.Description variant="block">Block description</ActionList.Description> | ||
| </ActionList.LinkItem> | ||
| <ActionList.LinkItem>Item with no description</ActionList.LinkItem> | ||
| <ActionList.LinkItem> | ||
| </ActionList.Item> | ||
| <ActionList.Item>Item with no description</ActionList.Item> | ||
| <ActionList.Item> | ||
| Item with inline description | ||
| <ActionList.Description variant="block">Block description</ActionList.Description> | ||
| </ActionList.LinkItem> | ||
| </ActionList.Item> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should keep one story for LinkItem in ActionList.dev.stories so that we don't accidentally break it before it's time to remove ActionList.LinkItem. |
||
| </ActionList> | ||
| </Stack.Item> | ||
| </Stack> | ||
|
|
||
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
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.
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.
Hi!
What does the deprecation show up as? Does it show up as an error in CI for github-ui or only a soft suggestion in vscode?
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.
It would only be a suggestion in vscode like this: