Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 678
Add trailingAction to TextInput#1947
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
c9f34f126976c75157087258ed6c245b5686c1f35881a102289b0e44e964c1153885000473333070612f097e8fbf2f52c779fbe764a4fcc01bdf6d15f14db83464982d586a80ced3de38bc639eeebc4722b18aee52d2e1a5cfc485fc0eeef8bf281de785ccda3dc21dfffa764f9ad31818d61353f6b35e8af0c0716ad284ac012f1e94c13c2781e4c46f1daf0dabb665781c4d12c5f76b26b765f5731581339d9d6d1e442641a276b1d60a2a16fb1be73b569File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@primer/react': minor | ||
| --- | ||
| Adds the option to render a trailing action inside of the TextInput component |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -21,6 +21,7 @@ const InputLabel: React.FC<Props & SxProp> = ({children, disabled, required, vis | ||
| display: 'block', | ||
| color: disabled ? 'fg.muted' : 'fg.default', | ||
| cursor: disabled ? 'default' : 'pointer', | ||
| alignSelf: 'flex-start', | ||
ContributorAuthor 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. Not relevant to this PR. I just noticed the label was clickable even if the user's cursor wasn't on the text. | ||
| ...sx | ||
| }} | ||
| > | ||
Uh oh!
There was an error while loading. Please reload this page.
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.
This is the only thing that was added. The rest of the changes are just indentation.
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.
Could we add a props table for
TextInput.Action?