Skip to content

Move text input style overrides into sx prop - #1446

Merged
colebemis merged 4 commits into
mainfrom
colebemis-patch-2
Sep 21, 2021
Merged

Move text input style overrides into sx prop#1446
colebemis merged 4 commits into
mainfrom
colebemis-patch-2

Conversation

@colebemis

@colebemiscolebemis commented Sep 21, 2021

Copy link
Copy Markdown
Contributor

Problem

We recently removed system props from the TextInput component (#1414) but we still relied on TextInput system props in SelectPanel. This caused a visual regression in SelectPanel:

CleanShot 2021-09-21 at 11 30 29@2x

Solution

To fix this issue, I moved the TextInput style overrides into the sx prop instead of system props.

CleanShot 2021-09-21 at 11 38 50@2x

@changeset-bot

changeset-botBot commented Sep 21, 2021

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ec33297

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

This PR includes changesets to release 1 package
NameType
@primer/componentsPatch

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

Comment threadsrc/SelectPanel/SelectPanel.tsx Outdated
@github-actions

github-actionsBot commented Sep 21, 2021

Copy link
Copy Markdown
Contributor

size-limit report 📦

PathSize
dist/browser.esm.js51.71 KB (0%)
dist/browser.umd.js52 KB (0%)

@colebemis
colebemis marked this pull request as ready for review September 21, 2021 18:39
@colebemis
colebemis requested review from a team and dgreifSeptember 21, 2021 18:39

@jfuchsjfuchs left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good catch, thanks. I wonder why this typechecked without error...

@colebemis
colebemis merged commit b4e5287 into mainSep 21, 2021
@colebemis
colebemis deleted the colebemis-patch-2 branch September 21, 2021 19:00
@primer-cssprimer-css mentioned this pull request Sep 21, 2021
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@colebemis@jfuchs