-
Notifications
You must be signed in to change notification settings - Fork 536
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
feat(TextInput): Update TextInput to use data attributes for styling #5242
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 779c1f3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks! |
size-limit report 📦
|
expect(defaultStyles).toEqual(expect.objectContaining(expectedStyles)) | ||
expect(blockStyles).not.toEqual(expect.objectContaining(expectedStyles)) | ||
expect(defaultStyles).not.toEqual(expect.objectContaining(expectedStyles)) | ||
expect(blockStyles).toEqual(expect.objectContaining(expectedStyles)) |
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.
Update so that variables accurately reflect what is being tests.
@@ -56,56 +16,37 @@ export type StyledBaseWrapperProps = { | |||
isInputFocused?: boolean | |||
monospace?: boolean | |||
validationStatus?: FormValidationStatus | |||
/** @deprecated Use `size` prop instead */ | |||
variant?: TextInputSizes | |||
size?: TextInputSizes |
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.
Moved into the base props since that is where they are being used
…am/text-input-data-attrs
${minWidth} | ||
${maxWidth} | ||
${sx} | ||
} |
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.
Wrapped in & {...}
to ensure it has greater specificity than data attributes for passed in sx prors
${sx}; | ||
& { | ||
${sx} | ||
} |
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.
Wrapped in & {...}
to ensure it has greater specificity than data attributes for passed in sx prors
🔴 golden-jobs completed with status |
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 change looks good to me, wanna tag in @joshblack to get his review
👋 Hi from github/github! Your integration PR is ready: https://github.com/github/github/pull/350317 |
Changelog
New
Changed
get
calls with CSS variables and removed fallbacksRemoved
Rollout strategy
Testing & Reviewing
Not sure if it is a known issue but it seems that passing in
small
forsize
does not currently do anything, whereas with the changes made, we are getting smaller inputsMerge checklist