discourse/app/assets/stylesheets/common
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
..
admin UX: Add DPageHeader to watched words and color palettes (#30686) 2025-01-10 15:32:10 +10:00
base UX: Switch button focus state to focus-visible (#30744) 2025-01-13 14:05:51 -05:00
components UX: Switch button focus state to focus-visible (#30744) 2025-01-13 14:05:51 -05:00
float-kit DEV: replaces topic-notifications-options by DMenu (#30298) 2024-12-16 19:59:18 +01:00
form-kit DEV: unifies emoji picker (#28277) 2025-01-08 11:41:36 +01:00
foundation UX: Make radio buttons respect forum's accent color (#30235) 2024-12-11 15:22:00 -08:00
login UX: Invites styles refactor (#30329) 2024-12-17 15:11:21 -06:00
modal FEATURE: Allow to customize the signup form descriptions (#29959) 2024-11-27 14:23:14 -03:00
select-kit DEV: replaces topic-notifications-options by DMenu (#30298) 2024-12-16 19:59:18 +01:00
table-builder DEV: removes legacy modal code (#28047) 2024-07-24 18:07:17 +02:00
d-editor.scss DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
font-variables.scss UX: ensure ios font size is always min 16px with max() fn (#29270) 2024-10-18 05:26:12 +02:00
input_tip.scss UX: Hide the error tooltip when focusing the topic title (#27531) 2024-06-19 11:55:29 -03:00
loading-slider.scss
post-action-feedback.scss UX: improve link copy status transition (#30401) 2024-12-20 14:12:13 -05:00
printer-friendly.scss DEV: Improve method of presenting link clicks (#29453) 2024-10-31 12:44:08 -07:00
software-update-prompt.scss UX: adjust software update banner for headerless pages (#28496) 2024-08-22 16:51:26 -04:00
topic-entrance.scss DEV: Implement glimmer topic-list (#26743) 2024-05-21 14:36:15 +02:00
topic-timeline.scss Cleanup mobile topic footer area (#30132) 2024-12-11 14:59:37 +01:00
whcm.scss