Skip to content

Commit

Permalink
refactor: fix focus on item
Browse files Browse the repository at this point in the history
  • Loading branch information
kKaskak committed Dec 3, 2024
1 parent 46a29a4 commit 6d3eeaa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/common/RadioButton/RadioButton.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Copyright (C) 2017-2024 Smart code 203358507

@import (reference) '~@stremio/stremio-colors/less/stremio-colors.less';

.radio-button {
display: flex;
align-items: center;
Expand All @@ -20,6 +22,9 @@
outline: none;
user-select: none;
margin-right: 0.75rem;
outline-width: var(--focus-outline-size);
outline-color: @color-surface-light5;
outline-offset: calc(-1 * var(--focus-outline-size));

input[type='radio'] {
opacity: 0;
Expand Down Expand Up @@ -53,5 +58,9 @@
opacity: 1;
}
}

&:focus {
outline-style: solid;
}
}
}
6 changes: 5 additions & 1 deletion src/routes/Settings/URLsManager/Item/Item.less
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
color: var(--primary-foreground-color);
}

&:hover {
&:hover, &:focus {
background-color: var(--overlay-color);

.icon {
Expand Down Expand Up @@ -121,6 +121,10 @@

.delete {
right: 0.5rem;

.icon {
opacity: 0.6;
}
}
}
}
Expand Down

0 comments on commit 6d3eeaa

Please sign in to comment.