discourse/app/assets/stylesheets
Kris f23e196b4f
UX: Switch button focus state to focus-visible (#30744)
From https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible:

> The :focus-visible pseudo-class applies while an element matches the
[:focus](https://developer.mozilla.org/en-US/docs/Web/CSS/:focus)
pseudo-class and the UA ([User
Agent](https://developer.mozilla.org/en-US/docs/Glossary/User_agent))
determines via heuristics that the focus should be made evident on the
element. (Many browsers show a "focus ring" by default in this case.)

This change switches buttons over to `:focus-visible` which shouldn't
change much, except for situations where focus state may linger in cases
when it's not desired, like the tracking button here for example:


![image](https://github.com/user-attachments/assets/57aaa193-0960-4757-a461-47fdcca7de2a)


When using `focus-visible` the `focus` state is no longer visible after
a tap, but the focus state will still appear when using keyboard
navigation or assistive technology like VoiceOver, as seen here:


<img
src="https://github.com/user-attachments/assets/62398532-3e05-4979-91a4-d3ddeb4758cb"
width="300" />
2025-01-13 14:05:51 -05:00
..
common UX: Switch button focus state to focus-visible (#30744) 2025-01-13 14:05:51 -05:00
desktop FEATURE: add drafts dropdown menu (#30277) 2025-01-13 13:33:57 +04:00
mobile DEV: Consolidate mobile positioning strategies on mobile and iPad (#30241) 2025-01-10 11:00:15 -05:00
vendor DEV: FloatKit (#23650) 2023-09-26 13:39:52 +02:00
admin_rtl.scss
admin.scss
color_definitions.scss UX: Multiple codeblocks fixes (#29898) 2024-11-22 13:52:23 -06:00
common.scss DEV: form-kit 2024-07-17 11:59:35 +02:00
desktop_rtl.scss
desktop.scss
embed.scss FIX: Broken hashtags on embed and publish pages (#24210) 2023-11-02 11:43:55 +10:00
ember_cli.scss
mobile_rtl.scss
mobile.scss DEV: form-kit 2024-07-17 11:59:35 +02:00
publish.scss FIX: Broken hashtags on embed and publish pages (#24210) 2023-11-02 11:43:55 +10:00
qunit-custom.scss UX: update twitter blue to X black (#26343) 2024-03-25 11:36:33 -04:00
qunit.scss
wcag.scss Cleanup mobile topic footer area (#30132) 2024-12-11 14:59:37 +01:00
wizard_rtl.scss
wizard.scss FIX: Wizard improvements post-merge part 1 (#30612) 2025-01-07 17:01:05 +10:00