Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/components/NcListItem/NcListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,7 @@ export default {
.list-item__wrapper {
position: relative;
width: 100%;
padding: 2px; // for inner focus-visible outline

&--active,
&:active,
Expand Down Expand Up @@ -738,11 +739,11 @@ export default {
position: relative;
flex: 0 0 auto;
justify-content: flex-start;
padding: 8px 10px;
padding: 6px 8px;
// Fix for border-radius being too large for 3-line entries like in Mail
// 44px avatar size / 2 + 8px padding, and 2px for better visual quality
border-radius: 32px;
margin: 2px 0;
border: 2px solid transparent; // to prevent resizing on focus-visible
width: 100%;
cursor: pointer;
transition: background-color var(--animation-quick) ease-in-out;
Expand All @@ -754,6 +755,11 @@ export default {
background-color: var(--color-background-hover);
}

&:focus-visible {
border: 2px solid var(--color-main-background); // to also add contrast on active state
outline: 2px solid var(--color-main-text);
}

&-content__wrapper {
display: flex;
align-items: center;
Expand Down