-
Notifications
You must be signed in to change notification settings - Fork 657
Remove styled-system usage - TextInputWrapper and related #6666
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
24 commits
Select commit
Hold shift + click to select a range
5d76f0b
rms sx prop from TextInputWrapper and related components
mperrotti 3356187
rms 'width', 'minWidth', 'maxWidth' from TextInputWrapper
mperrotti 55947fe
rms 'width', 'minWidth', 'maxWidth' from component API docs
mperrotti cabae97
appeases Stylelint
mperrotti bb312d5
adds changeset
mperrotti 5934861
Merge branch 'main' into mp/rm-sx/textinput+related
mperrotti 231a177
forgot to add CSS file lint fixes
mperrotti 1e677a6
Merge branch 'main' into mp/rm-sx/textinput+related
mperrotti 5d28459
fixes broken SelectPanel styles
mperrotti 741e430
Merge branch 'main' of github.com:primer/react into mp/rm-sx/textinpu…
mperrotti 15248ef
rms unused VRTs
mperrotti d364402
Merge branch 'main' into mp/rm-sx/textinput+related
mperrotti b39a405
Merge branch 'main' into mp/rm-sx/textinput+related
mperrotti ddbfd2e
rm 'color' usage from Overlay features stories
mperrotti c1e2cd7
Merge branch 'main' of github.com:primer/react into mp/rm-sx/textinpu…
mperrotti 3a22d20
rm unused class from SelectPanel CSS Module
mperrotti cec75cb
Merge branch 'mp/rm-sx/textinput+related' of github.com:primer/react …
mperrotti a496448
Merge branch 'main' of github.com:primer/react into mp/rm-sx/textinpu…
mperrotti 5679e24
adds components to styled-react
mperrotti d68de93
code style cleanups
mperrotti e3f4e57
story styling fixes
mperrotti a6c13c5
Merge branch 'main' into mp/rm-sx/textinput+related
mperrotti 792b1ef
Merge branch 'main' of github.com:primer/react into mp/rm-sx/textinpu…
mperrotti eb29047
fixes Breadcrumb story typescript errors
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 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 | ||
| --- | ||
|
|
||
| Removes styled-system usage from TextInputWrapper and related components and Storybook stories. |
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
10 changes: 10 additions & 0 deletions
10
packages/react/src/Breadcrumbs/Breadcrumbs.dev.stories.module.css
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,10 @@ | ||
| .EditableTextInput { | ||
| min-width: 120px; | ||
| max-width: 180px; | ||
| font-size: inherit; | ||
| border: var(--borderWidth-thin) dashed var(--borderColor-muted); | ||
| } | ||
|
|
||
| .EditableTextInput:focus { | ||
| border: var(--borderWidth-thin) solid var(--borderColor-accent-emphasis); | ||
| } |
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
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.
I see usage of this in dotcom, are we planning to migrate?
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.
I assume we would, but we're also planning to get rid of
sxprops in this upcoming release. Is there a plan for how to handle this? I know we havereact-styled, but I don't really know what it is or how to use it.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.
ah yes I think react-styled is the way to go here. @joshblack would it be part of https://github.com/github/primer/issues/5422 as well to go in dotcom and replace the textarea + sx usage with react-styled instead or what's the pipeline here?
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.
Exactly, yeah. I would make sure in github-ui to update usage there first (the migration in this case is just find the places that use styled-system for these components and update the imports to pull the component from
@primer/styled-react) and then merge here so that we don't have to deal with any challenges in the release.Hope that makes sense, let me know if it'd be helpful to walk through this or do a loom or something since this is a new process 👀