Skip to content

Commit

Permalink
Fix focus border and adjust active app indicator
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliushaertl committed Aug 30, 2022
1 parent c2093fb commit 0c3f4c9
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions core/src/components/AppMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,14 @@ $header-icon-size: 20px;
content: " ";
position: absolute;
pointer-events: none;
border: 8px solid transparent;
border-bottom-color: var(--color-main-background);
transform: translateX(-50%);
width: 12px;
height: 5px;
border-radius: 3px;
background-color: var(--color-primary-text);
left: 50%;
bottom: 0;
bottom: 3px;
display: block;
transition: all 0.1s ease-in-out;
opacity: 1;
Expand All @@ -153,8 +156,9 @@ $header-icon-size: 20px;
}
a {
width: 100%;
height: 100%;
width: calc(100% - 4px);
height: calc(100% - 4px);
margin: 2px;
color: var(--color-primary-text);
position: relative;
}
Expand Down Expand Up @@ -216,7 +220,7 @@ $header-icon-size: 20px;
}
&::before, .app-menu-entry::before {
border-width: 3px;
opacity: 0;
}
}
}
Expand All @@ -230,6 +234,14 @@ $header-icon-size: 20px;
opacity: 1;
background-color: transparent !important;
}
&:focus-visible {
opacity: 1;
background-color: transparent !important;
border-radius: var(--border-radius);
outline: none;
box-shadow: 0 0 0 2px var(--color-primary-text);
}
}
.app-menu-popover-entry {
Expand Down

0 comments on commit 0c3f4c9

Please sign in to comment.