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:
parent
09a36cbbfd
commit
0ffff84a9e
3 changed files with 11 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue