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

Update codemod to restore border color on form elements #15071

Open
wants to merge 2 commits into
base: next
Choose a base branch
from

Conversation

reinink
Copy link
Member

@reinink reinink commented Nov 21, 2024

This PR updates the upgrade codemod to also restore the border color on form elements, since the current * selector doesn't catch these elements since it has a lower specificity (0,0,0) than the form element styles in preflight (0,0,1).

I considered putting this in the form reset CSS instead, but it's possible that someone might be okay with removing that reset from their project but still needs to the border color reset—basically if they're using the border class on all their buttons and form controls, and relying on the default border color in certain situations.

@reinink reinink requested a review from a team as a code owner November 21, 2024 20:29
Sign up for free to 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