add an underline to the selected pin to improve accesibility

This commit is contained in:
Henry Jameson 2022-08-23 00:50:38 +03:00
parent 7b6745bb84
commit fa41f6cf96
3 changed files with 16 additions and 6 deletions

View File

@ -3,7 +3,7 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div <div
v-if="!forceExpand" v-if="!forceExpand"
class="panel-heading" class="panel-heading nav-panel-heading"
> >
<NavigationPins :limit="6" /> <NavigationPins :limit="6" />
<div class="spacer" /> <div class="spacer" />
@ -192,6 +192,7 @@
.timelines-chevron { .timelines-chevron {
margin-left: 0.8em; margin-left: 0.8em;
margin-right: 0.8em;
font-size: 1.1em; font-size: 1.1em;
} }
@ -209,9 +210,13 @@
background-color: var(--bg, $fallback--bg); background-color: var(--bg, $fallback--bg);
} }
.nav-panel-heading {
// breaks without a unit
--panel-heading-height-padding: 0em;
}
.fa-scale-110 { .fa-scale-110 {
margin-right: 0.8em; margin-right: 0.8em;
} }
} }
</style> </style>

View File

@ -30,6 +30,7 @@
.NavigationPins { .NavigationPins {
display: flex; display: flex;
overflow: hidden; overflow: hidden;
height: 100%;
.alert-dot { .alert-dot {
border-radius: 100%; border-radius: 100%;
@ -49,6 +50,7 @@
flex: 0 0 3em; flex: 0 0 3em;
min-width: 2em; min-width: 2em;
text-align: center; text-align: center;
overflow: visible;
& .svg-inline--fa, & .svg-inline--fa,
& .iconLetter { & .iconLetter {
@ -56,10 +58,13 @@
} }
&.router-link-active { &.router-link-active {
color: $fallback--text;
color: var(--selectedMenuText, $fallback--text);
border-bottom: 4px solid;
& .svg-inline--fa, & .svg-inline--fa,
& .iconLetter { & .iconLetter {
color: $fallback--text; color: inherit;
color: var(--selectedMenuText, $fallback--text);
} }
} }
} }

View File

@ -46,7 +46,7 @@
.panel-footer { .panel-footer {
--panel-heading-height-padding: 0.6em; --panel-heading-height-padding: 0.6em;
--__panel-heading-height: 3.2em; --__panel-heading-height: 3.2em;
--__panel-heading-height-inner: calc(var(--__panel-heading-height) - 2 * var(--panel-heading-height-padding)); --__panel-heading-height-inner: calc(var(--__panel-heading-height) - 2 * var(--panel-heading-height-padding, 0));
position: relative; position: relative;
box-sizing: border-box; box-sizing: border-box;
@ -57,7 +57,7 @@
grid-column-gap: 0.5em; grid-column-gap: 0.5em;
flex: none; flex: none;
background-size: cover; background-size: cover;
padding: 0.6em; padding: var(--panel-heading-height-padding);
height: var(--__panel-heading-height); height: var(--__panel-heading-height);
line-height: var(--__panel-heading-height-inner); line-height: var(--__panel-heading-height-inner);
z-index: 4; z-index: 4;