miniflux/internal/ui/static/css
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
..
common.css Replace link has button role with button tag 2024-02-09 17:09:30 -08:00
dark.css Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
light.css Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
sans_serif.css Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
serif.css Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
system.css Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00