-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
v5/docs: reintroduce outline
for docs code samples, buttons when :not(:focus-visible)
#36507
Conversation
Fixes the issues found in #36506 - need testing more thoroughly throughout though to check that the change to bootstrap-5-visible-focus-indication-fixed.mp4 |
@mdo et al, any thoughts on this? |
any chance we could get this looked at @twbs/css-review @mdo ? |
Focus indication on Note: We should improve the rendering because the focus area is under the copy button Regarding the buttons, the rendering on Chrome is good. On Firefox, however, the box shadow + red outline combination hurts the eyes a little bit. Maybe just because I'm not used to it yet. Off-topic: while playing with the documentation, focus indication for carousels controls; not visible enough IMO. |
in Chrome, there seems to be a tiny bit of overlap as well ... i can have a look at nudging something by a few pixels to compensate. in my Firefox/Win, it uses blue rather than red for some reason. maybe we should explicitly define the outline colour as well at some point (part of the larger reevaluation of focus/focus-visible styles perhaps) |
Let's do it step by step, no problem. In other PRs:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! @mdo I let you check this as well.
I'll have a look at the subtle nudging now as part of this PR, so hold off merging until I had a crack at it |
Done...added an extra bit of explicit margin on the right-hand side of the In Firefox now: In Chrome: As said, leaving the outline color thing for another time (as it will likely need to be done on a section basis, so the outline will be a light colour in the header, and a dark one in the main section, etc) So this PR is now ready for final review/merging |
@mdo et al, any news on this? |
Sighted keyboard users rely on knowing where their focus is. If the `<pre>` receives focus (so that it can be scrolled by keyboard users, for instance) then it's essential that they know this is the case
avoids having the focus outline awkwardly clipped by the copy button
08ca108
to
7765c1e
Compare
closes #36506