-
Notifications
You must be signed in to change notification settings - Fork 587
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
TextInput trailing action design and API update #2033
Merged
+292
−235
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
0dd7d4a
makes hover background appear inset
mperrotti c4a48b2
deprecates children prop - only icons should be used for text input i…
mperrotti 75ddbbf
deprecates 'variant' prop for TextInputInnerAction
mperrotti 5c9dba7
limits larger inner action tap target for coarse pointers
mperrotti aa1020e
adds changeset
mperrotti e91f6c9
Merge branch 'main' of github.com:primer/react into mp/textinput-inne…
mperrotti f4aded1
updates snapshots
mperrotti f2bff9e
prevents tooltip from appearing until button is actually hovered
mperrotti 334da6b
fixes vertical alignment of SVG in IconButton when size !== 'medium'
mperrotti adb5e21
Merge branch 'main' into mp/textinput-inner-action-design-update
mperrotti 103daf7
addresses last bit of PR feedback
mperrotti b31b38c
Merge branch 'mp/textinput-inner-action-design-update' of github.com:…
mperrotti 8fb7feb
Merge branch 'main' of github.com:primer/react into mp/textinput-inne…
mperrotti 87dc553
updates snapshots
mperrotti 9b9c963
Merge branch 'main' into mp/textinput-inner-action-design-update
mperrotti 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 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,7 @@ | ||
--- | ||
'@primer/react': patch | ||
--- | ||
|
||
- Text input inner action's hover bg should not touch the text input edges | ||
- Increases touch target area of the text input inner action button | ||
- Deprecated `children` and `variant` props on the `TextInputInnerAction` component, but they're **still supported for now**. |
This file contains 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 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 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.
Question: Does this make it a breaking change? Would there be new warnings when someone upgrades primer/react?
How do we usually deprecate props?
Side note: Are there any users of
TextInput.Action
? Can we get away with this in patchThere 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.
No, if they're still using
variant
, it will still workI think it would just be in their IDE
I don't think we have a defined process yet. Maybe @colebemis knows
I don't think so. Even if there were, I think we can get away with this in a patch.