-
Notifications
You must be signed in to change notification settings - Fork 645
Adjust focus styling of textarea and input
#3965
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
Conversation
|
size-limit report 📦
|
|
Uh oh! @dipree, the image you shared is missing helpful alt text. Check your pull request body. Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image. Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs. |
6 similar comments
|
Uh oh! @dipree, the image you shared is missing helpful alt text. Check your pull request body. Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image. Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs. |
|
Uh oh! @dipree, the image you shared is missing helpful alt text. Check your pull request body. Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image. Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs. |
|
Uh oh! @dipree, the image you shared is missing helpful alt text. Check your pull request body. Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image. Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs. |
|
Uh oh! @dipree, the image you shared is missing helpful alt text. Check your pull request body. Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image. Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs. |
|
Uh oh! @dipree, the image you shared is missing helpful alt text. Check your pull request body. Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image. Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs. |
|
Uh oh! @dipree, the image you shared is missing helpful alt text. Check your pull request body. Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image. Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs. |
textarea and input
|
Uh oh! @dipree, the image you shared is missing helpful alt text. Check your pull request body. Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image. Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs. |
Closes https://github.com/github/primer/issues/2889
The current focus styling for
textareaandinputin Primer is usingbox-shadowwithinsetand it changes theborder-colorto achieve what visually looks like a2pxfocus "outline".That doesn't account for scrollbars and renders artifacts in the corners because it's two adjacent
1pxlines.Aside from the visual fixes of the solution in this PR, the one difference is that the additional
1pxoutline on focus is now outside instead of inside. This behaviour is already being used in the CommentBox.Changelog
borderof theTextareacomponentTextarea,TextInput,TextInputWithTokensandSelectcomponentn when focusedbox-shadowinseton focus1pxbox-shadowinseton focus when scrollingRollout strategy
Testing & Reviewing
The changes have been tested amongst browsers under macOS and Windows.
TextAreaFirefox:
Edge:
Safari:
TextInputTextInputWithTokensSelectMerge checklist
Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.