1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

change buttons that act as links to anchor tags

Buttons and links are different and serve different purposes. Links _go
somewhere_ while buttons _do something_.

When I click on a movie title to _go to_ the movie page the thing I
click should act like a link. If I ctrl+click or middle click it it
should still act like a link... by opening in a new tab.
This commit is contained in:
David Murdoch 2022-03-02 18:24:52 -05:00
parent 09a36cbbfd
commit 0ffff84a9e
No known key found for this signature in database
GPG key ID: 222CDCBDB133DA33
3 changed files with 11 additions and 5 deletions

View file

@ -785,7 +785,7 @@ function renderDetailImage(elem, item, imageLoader) {
imageLoader.lazyChildren(elem);
// Avoid breaking the design by preventing focus of the poster using the keyboard.
elem.querySelector('button').tabIndex = -1;
elem.querySelector('a').tabIndex = -1;
}
function renderImage(page, item) {