Focus outline on Code Snippet is unstyled
See original GitHub issueWhen clicking in a code snippet, it appears that we have a un-styled focus indicator:
This is called (I believe) by tabindex="0"
and role="textbox"
, which I believe is moreso meant for an area where you can freely edit text.
Issue Analytics
- State:
- Created 4 years ago
- Comments:15 (14 by maintainers)
Top Results From Across the Web
WCAG: Firefox and Edge don't show outline on focussed input ...
The browsers show a focus indicator that is only a differently colored border, when entering a form element – as long as it's...
Read more >How to Style CSS Focus Outline - Joy of Code
Removing Focus Outline Is Bad For Accessibility You might be tempted to remove focus styles. There's only one problem.
Read more >Preflight - Tailwind CSS
Overview. Built on top of modern-normalize, Preflight is a set of base styles for Tailwind projects that are designed to smooth over cross-browser ......
Read more >Unstyled React Button component and hook - MUI Base
Similarly to the native HTML <button> element, the Unstyled Button component can't receive focus when it's disabled. This may reduce its accessibility, as ......
Read more >outline - CSS: Cascading Style Sheets - MDN Web Docs
Assigning outline a value of 0 or none will remove the browser's default focus style. If an element can be interacted with it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Personally, I think the preliminary fix (no height adjustments) looks great and could be implemented immediately it seems. I like that it stays the same height in both macOS versions.
Focus styles have been removed from multi-line snippet, @emyarod is going to look into a possible cross-browser / os solution to the single line snippet in a separate PR