-
Notifications
You must be signed in to change notification settings - Fork 664
feat: implement ADR-023 Part 1 #7724
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
Changes from 26 commits
abfe9c4
6381280
091de76
32d4062
c7c0da7
4cf2494
2962363
3f92c21
273f681
8c38035
8c3d244
8ca6eac
ddca738
6f96ebd
17f2bf0
ff94d66
79e42d4
b05df83
db67cc2
e71ce27
f2b0a1f
e94fe52
8c886da
76bb50d
bba65c1
9aaead8
8429e82
a874ad0
34ac550
6e784d9
8e7bf4c
e20e7a9
5f52ac4
b6f32bf
21cbd6d
1e18968
1cbc315
2d13445
2eb3867
b4a9532
5a607d3
7d57382
f7829b8
f44ccfb
a3e4ba9
60aa35f
a0b9c60
b8dc78b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| --- | ||
| '@primer/react': minor | ||
| --- | ||
|
|
||
| Add stable `data-component` selectors to multiple components following ADR-023: | ||
|
|
||
| - **ActionBar** | ||
| - **ActionList** and friends | ||
| - **Button** | ||
| - **FilteredActionList** and friends | ||
| - **Link** | ||
| - **LinkButton** | ||
| - **Pagination** | ||
| - **SelectPanel** and friends | ||
| - **Table** and friends | ||
| - **TextInput** | ||
| - **TextInputwithTokens** | ||
| - **TooltipV2** | ||
|
|
||
| This enables consumers to query and test components using stable selectors like `[data-component="Table.Row"]`. | ||
|
Member
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. General comment, that's why I'm leaving it on the changelog. How i understand it, the problem that we're trying to solve with data-component is to expose stable selectors which otherwise would be hidden or tucked away. Some of these components are top level components that support className and are not composed in an invisible manner inside another component (like selectpanel items), should we still add data-component to them?
Member
Author
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 this is the key here. Which one of these falls into that category? 🤔 The way I see it these all are either:
|
||


Uh oh!
There was an error while loading. Please reload this page.