Skip to content
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

fix(TextInput): Fix font size for small text inputs #5243

Merged
merged 4 commits into from
Nov 6, 2024

Conversation

hussam-i-am
Copy link
Collaborator

Changelog

New

Changed

  • The media query styling was overriding the small variants, so updated the fontSize to be a responsive array to ensure it is correctly set

Removed

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; if selected, include a brief description as to why

Testing & Reviewing

Merge checklist

@hussam-i-am hussam-i-am self-assigned this Nov 6, 2024
Copy link

changeset-bot bot commented Nov 6, 2024

🦋 Changeset detected

Latest commit: f43c477

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Minor

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

Copy link
Contributor

github-actions bot commented Nov 6, 2024

👋 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!

@github-actions github-actions bot added the integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm label Nov 6, 2024
@github-actions github-actions bot temporarily deployed to storybook-preview-5243 November 6, 2024 18:43 Inactive
Copy link
Contributor

github-actions bot commented Nov 6, 2024

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 98.68 KB (+0.1% 🔺)
packages/react/dist/browser.umd.js 98.96 KB (+0.03% 🔺)

Copy link
Contributor

@langermank langermank left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Visual change looks good, curious about the empty media queries but maybe it doesn't matter for now?

@@ -4173,6 +4185,14 @@ exports[`TextInput renders with a loading indicator 1`] = `
}
@media screen and (min-width:544px) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder why these were added? 🤔

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, seemed strange but noticed they already existed and so I figured it was some artifact of using styled components.

@hussam-i-am hussam-i-am added this pull request to the merge queue Nov 6, 2024
Merged via the queue into main with commit bc9c696 Nov 6, 2024
43 checks passed
@hussam-i-am hussam-i-am deleted the hussam-i-am/fix-text-input-font-size branch November 6, 2024 20:08
@primer primer bot mentioned this pull request Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TextInput: Value/Placeholder font size doesn't respect it's size variant
2 participants