miniflux-v2/internal/ui
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
..
form feat: add linkace service integration 2024-01-25 18:04:14 -08:00
session Add WebAuthn / Passkey integration 2023-11-05 18:57:35 +01:00
static Replace link has button role with button tag 2024-02-09 17:09:30 -08:00
view Add WebAuthn / Passkey integration 2023-11-05 18:57:35 +01:00
about.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
api_key_create.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
api_key_list.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
api_key_remove.go Implement structured logging using log/slog package 2023-09-24 22:37:33 -07:00
api_key_save.go Refactor HTTP Client and LocalizedError packages 2023-10-22 13:09:30 -07:00
bookmark_entries.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
category_create.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
category_edit.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
category_entries_all.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
category_entries.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
category_feeds.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
category_list.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
category_mark_as_read.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
category_refresh.go Refactor Batch Builder and prevent accidental and excessive refreshes from the web ui 2023-10-20 16:07:18 -07:00
category_remove.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
category_save.go Refactor HTTP Client and LocalizedError packages 2023-10-22 13:09:30 -07:00
category_update.go Refactor HTTP Client and LocalizedError packages 2023-10-22 13:09:30 -07:00
entry_bookmark.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
entry_category.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
entry_enclosure_save_position.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
entry_feed.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
entry_read.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
entry_save.go Add webhook event for saving entry 2023-09-10 18:17:33 -07:00
entry_scraper.go Add API endpoint to update entry title and content 2023-10-06 23:27:19 -07:00
entry_search.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
entry_toggle_bookmark.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
entry_unread.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
entry_update_status.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
feed_edit.go Apprise Service Urls per feed 2023-09-09 10:59:04 -07:00
feed_entries_all.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
feed_entries.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
feed_icon.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
feed_list.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
feed_mark_as_read.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
feed_refresh.go Add FORCE_REFRESH_INTERVAL config option 2024-01-02 18:33:15 -08:00
feed_remove.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
feed_update.go Refactor HTTP Client and LocalizedError packages 2023-10-22 13:09:30 -07:00
handler.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
history_entries.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
history_flush.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
integration_pocket.go Implement structured logging using log/slog package 2023-09-24 22:37:33 -07:00
integration_show.go feat: add linkace service integration 2024-01-25 18:04:14 -08:00
integration_update.go Add generic webhook integration 2023-09-09 13:11:42 -07:00
login_check.go Refactor HTTP Client and LocalizedError packages 2023-10-22 13:09:30 -07:00
login_show.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
logout.go Implement structured logging using log/slog package 2023-09-24 22:37:33 -07:00
middleware.go OIDC: Redirect to user home page after successful authentication 2023-11-07 21:21:56 +01:00
oauth2_callback.go OIDC: Redirect to user home page after successful authentication 2023-11-07 21:21:56 +01:00
oauth2_redirect.go Implement structured logging using log/slog package 2023-09-24 22:37:33 -07:00
oauth2_unlink.go Implement structured logging using log/slog package 2023-09-24 22:37:33 -07:00
oauth2.go Add profile scope to OIDC integration to support accounts without email 2023-09-08 20:26:42 -07:00
offline.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
opml_export.go Add command line argument to export user feeds 2023-09-27 21:45:23 -07:00
opml_import.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
opml_upload.go Refactor HTTP Client and LocalizedError packages 2023-10-22 13:09:30 -07:00
pagination.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
proxy.go Implement structured logging using log/slog package 2023-09-24 22:37:33 -07:00
search_entries.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
session_list.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
session_remove.go Implement structured logging using log/slog package 2023-09-24 22:37:33 -07:00
settings_show.go Add WebAuthn / Passkey integration 2023-11-05 18:57:35 +01:00
settings_update.go Refactor HTTP Client and LocalizedError packages 2023-10-22 13:09:30 -07:00
share.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
shared_entries.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
static_app_icon.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
static_favicon.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
static_javascript.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
static_manifest.go Status bar is unreadable when using PWA in dark mode on Firefox Android 2023-09-11 20:24:42 -07:00
static_stylesheet.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
subscription_add.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
subscription_bookmarklet.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
subscription_choose.go Refactor HTTP Client and LocalizedError packages 2023-10-22 13:09:30 -07:00
subscription_submit.go Fix default User-Agent regression 2023-11-18 20:57:47 +01:00
ui.go Limit feed/category entry pagination to unread entries when coming from unread entry list 2024-01-09 21:44:25 -08:00
unread_entries.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
unread_entry_category.go Limit feed/category entry pagination to unread entries when coming from unread entry list 2024-01-09 21:44:25 -08:00
unread_entry_feed.go Limit feed/category entry pagination to unread entries when coming from unread entry list 2024-01-09 21:44:25 -08:00
unread_mark_all_read.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
user_create.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
user_edit.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
user_list.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
user_remove.go Implement structured logging using log/slog package 2023-09-24 22:37:33 -07:00
user_save.go Refactor HTTP Client and LocalizedError packages 2023-10-22 13:09:30 -07:00
user_update.go Refactor HTTP Client and LocalizedError packages 2023-10-22 13:09:30 -07:00
webauthn.go Refactor WebAuthn Javascript code 2023-11-06 19:55:32 +01:00