discourse/app/assets/stylesheets/common/components
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
..
sidebar/edit-navigation-menu UX: clean up some label and form inconsistencies, reduce excess bolding (#25701) 2024-02-15 11:27:51 -05:00
_index.scss FEATURE: add drafts dropdown menu (#30277) 2025-01-13 13:33:57 +04:00
add-pm-participants.scss FIX: remove redundant body scroll lock (#29395) 2024-10-24 13:41:08 -04:00
badges.scss DEV: Improve method of presenting link clicks (#29453) 2024-10-31 12:44:08 -07:00
banner.scss
bookmark-list.scss
bookmark-menu.scss DEV: implements <DropdownMenu /> (#26917) 2024-05-08 09:08:42 +02:00
bookmark-modal.scss UX: improves modal on mobile (#26055) 2024-03-22 16:29:32 +01:00
buttons.scss UX: Switch button focus state to focus-visible (#30744) 2025-01-13 14:05:51 -05:00
calendar-date-time-input.scss
char-counter.scss
color-input.scss PERF: eliminate some slow CSS selectors (#25392) 2024-01-26 13:10:45 -05:00
conditional-loading-section.scss
convert-to-public-topic-modal.scss
d-breadcrumbs.scss DEV: Make breadcrumb separators unclickable icons (#29817) 2024-11-19 16:42:43 +08:00
d-lightbox.scss
d-page-header.scss DEV: Introduce <DPageHeader /> and <DPageSubheader /> components (#30146) 2024-12-18 08:13:39 +10:00
d-select.scss DEV: <DSelect /> (#30224) 2024-12-13 10:40:06 +01:00
d-stat-tiles.scss UX: Introduce <DStatTiles /> component (#30238) 2024-12-13 11:32:46 +10:00
d-toggle-switch.scss DEV: form-kit 2024-07-17 11:59:35 +02:00
date-input.scss
date-picker.scss
date-time-input-range.scss
date-time-input.scss
download-calendar.scss
drafts-dropdown-menu.scss FEATURE: add drafts dropdown menu (#30277) 2025-01-13 13:33:57 +04:00
dropdown-menu.scss DEV: unifies emoji picker (#28277) 2025-01-08 11:41:36 +01:00
emoji-picker.scss FIX: correct emoji picker size in modal (#30675) 2025-01-09 21:53:49 +01:00
file-size-input.scss FIX: Make cancel and reset buttons work for file_size_restriction settings (#28347) 2024-08-15 19:38:47 +03:00
filter-input.scss DEV: unifies emoji picker (#28277) 2025-01-08 11:41:36 +01:00
footer-nav.scss DEV: Consolidate mobile positioning strategies on mobile and iPad (#30241) 2025-01-10 11:00:15 -05:00
form-template-field.scss DEV: Cleanup todos from codebase (#30394) 2024-12-19 18:22:33 -08:00
group-member-dropdown.scss
groups-form-membership-fields.scss
hashtag.scss UX: Tweak the mention padding (#26492) 2024-04-05 22:23:37 +02:00
horizontal-overflow-nav.scss UX: remove default use of quaternary color, update nav pill styles (#27502) 2024-06-24 09:54:34 -04:00
iframed-html.scss
ignored-user-list.scss
keyboard_shortcuts.scss FEATURE: Add keyboard shortcuts for jumping to unread channels (#29734) 2024-11-18 11:18:58 +11:00
more-topics.scss UX: spacing fix for related topics on mobile (#27940) 2024-07-16 17:51:55 -04:00
navs.scss UX: Refactor nav stack active element (#30601) 2025-01-06 18:14:17 -07:00
notifications-tracking.scss DEV: replaces topic-notifications-options by DMenu (#30298) 2024-12-16 19:59:18 +01:00
offline-indicator.scss
pick-files-button.scss
post-list.scss DEV: Reusable post-list component (#30312) 2024-12-19 09:20:25 -08:00
powered-by-discourse.scss UX: Add progress bar to the registration flow (#27694) 2024-08-28 08:43:39 -03:00
relative-time-picker.scss
signup-progress-bar.scss ux: move to minimal layout (#30327) 2024-12-17 14:41:00 -06:00
svg.scss
tap-tile.scss
theme-card.scss DEV: update deprecated icon names in themes-grid-card (#30162) 2024-12-08 22:18:55 +01:00
time-input.scss DEV: removes legacy modal code (#28047) 2024-07-24 18:07:17 +02:00
time-shortcut-picker.scss
topic-map.scss UX: Do not anchor scroll on topic navigation/map (#30580) 2025-01-06 10:13:29 +00:00
topic-query-filter.scss FEATURE: Add Bulk actions to /filter page (#29420) 2024-11-22 11:51:06 +11:00
user-card.scss UX: limit user-card focus ring to desktop (#29435) 2024-10-28 10:10:03 -04:00
user-info.scss UX: add space to following list (#27154) 2024-05-23 17:26:15 +04:00
user-status-message.scss FIX: Add the ident to fix user status styling in posts (#26585) 2024-04-10 01:44:37 +02:00
user-status-picker.scss DEV: unifies emoji picker (#28277) 2025-01-08 11:41:36 +01:00
user-stream-item.scss UX: prevent user stream title from overflowing page (#29032) 2024-09-30 13:10:23 -04:00
user-stream.scss
welcome-header.scss UX: Add progress bar to the registration flow (#27694) 2024-08-28 08:43:39 -03:00
widget-dropdown.scss