miniflux/internal/template/templates/views
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
..
about.html change header tag usage to match landmark meaning 2024-02-04 10:47:30 -08:00
add_subscription.html add alert role to alert message element 2024-02-05 20:14:23 -08:00
api_keys.html change header tag usage to match landmark meaning 2024-02-04 10:47:30 -08:00
bookmark_entries.html change focus target on items when using keyboard navigation 2024-02-09 16:54:29 -08:00
categories.html Replace link has button role with button tag 2024-02-09 17:09:30 -08:00
category_entries.html Replace link has button role with button tag 2024-02-09 17:09:30 -08:00
category_feeds.html Replace link has button role with button tag 2024-02-09 17:09:30 -08:00
choose_subscription.html change header tag usage to match landmark meaning 2024-02-04 10:47:30 -08:00
create_api_key.html add alert role to alert message element 2024-02-05 20:14:23 -08:00
create_category.html add alert role to alert message element 2024-02-05 20:14:23 -08:00
create_user.html add alert role to alert message element 2024-02-05 20:14:23 -08:00
edit_category.html add alert role to alert message element 2024-02-05 20:14:23 -08:00
edit_feed.html add alert role to alert message element 2024-02-05 20:14:23 -08:00
edit_user.html add alert role to alert message element 2024-02-05 20:14:23 -08:00
entry.html Replace link has button role with button tag 2024-02-09 17:09:30 -08:00
feed_entries.html Replace link has button role with button tag 2024-02-09 17:09:30 -08:00
feeds.html add alert role to alert message element 2024-02-05 20:14:23 -08:00
history_entries.html Replace link has button role with button tag 2024-02-09 17:09:30 -08:00
import.html add alert role to alert message element 2024-02-05 20:14:23 -08:00
integrations.html add alert role to alert message element 2024-02-05 20:14:23 -08:00
login.html Replace link has button role with button tag 2024-02-09 17:09:30 -08:00
search_entries.html add alert role to alert message element 2024-02-05 20:14:23 -08:00
sessions.html change header tag usage to match landmark meaning 2024-02-04 10:47:30 -08:00
settings.html add alert role to alert message element 2024-02-05 20:14:23 -08:00
shared_entries.html Replace link has button role with button tag 2024-02-09 17:09:30 -08:00
unread_entries.html Replace link has button role with button tag 2024-02-09 17:09:30 -08:00
users.html add alert role to alert message element 2024-02-05 20:14:23 -08:00
webauthn_rename.html add alert role to alert message element 2024-02-05 20:14:23 -08:00