miniflux/internal
Tân Î-sîn ea58bac548
Replace link has button role with button tag
# Change HTML tag to button

Replace the link tag with an HTML button to prevent some screen readers from having confusing announcements. By using the HTML button, users can use the Enter and Space keys to activate actions by default, instead of implementing them in JavaScript.

# Differentiate links and buttons visually

When activating the link element, the user may expect the web page to navigate to the URL and the page will refresh; when activating the button element, the user may expect the web page to still be on the same page, so that their current state, such as: input value, won't disappear.

Links and buttons should have different styles visually, so that users can't expect what will happen when they activate a link or a button.

I added the underline to the links, because that is the common pattern. Buttons have border and background color in a common pattern. But I think that will change the current layout drastically. So I added the focus, hover and active classes to the buttons instead.
2024-02-09 17:09:30 -08:00
..
api Fix default User-Agent regression 2023-11-18 20:57:47 +01:00
cli Fix incorrect condition 2024-01-11 19:04:50 -08:00
config Add FORCE_REFRESH_INTERVAL config option 2024-01-02 18:33:15 -08:00
crypto Add generic webhook integration 2023-09-09 13:11:42 -07:00
database feat: add linkace service integration 2024-01-25 18:04:14 -08:00
fever Implement structured logging using log/slog package 2023-09-24 22:37:33 -07:00
googlereader Google Reader API: Allow rename and move feed at the same time 2023-12-01 17:50:01 -08:00
http Fix inaccessible metrics endpoint when listening on Unix socket 2023-12-06 19:52:33 -08:00
integration feat: add linkace service integration 2024-01-25 18:04:14 -08:00
locale Remove translation key page.categories.unread_counter 2024-02-05 21:39:02 -08:00
metric Implement structured logging using log/slog package 2023-09-24 22:37:33 -07:00
model feat: add linkace service integration 2024-01-25 18:04:14 -08:00
oauth2 Implement structured logging using log/slog package 2023-09-24 22:37:33 -07:00
proxy Rename internal url package to avoid overlap with net/url 2023-08-13 19:57:04 -07:00
reader Allow filtering feeds on entry.Author 2024-01-31 19:42:07 -08:00
storage feat: add linkace service integration 2024-01-25 18:04:14 -08:00
systemd Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
template Replace link has button role with button tag 2024-02-09 17:09:30 -08:00
tests Add /v1/version endpoint 2023-10-08 15:53:24 -07:00
timezone Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
ui Replace link has button role with button tag 2024-02-09 17:09:30 -08:00
urllib Rename internal url package to avoid overlap with net/url 2023-08-13 19:57:04 -07:00
validator Refactor HTTP Client and LocalizedError packages 2023-10-22 13:09:30 -07:00
version Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
worker Improve error log message in worker 2023-11-08 19:58:56 +00:00