Skip to content

Commit 8771793

Browse files
committed
Uniformize focus ring styles and optimize navbar links and color
1 parent 6959b67 commit 8771793

File tree

6 files changed

+33
-10
lines changed

6 files changed

+33
-10
lines changed

plugins/CoreHome/stylesheets/coreHome.less

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
}
4949

5050
.accessibility-skip-to-content {
51+
padding: 0 0.5rem;
5152
font-size: 14px;
5253
position: absolute;
5354
left: -10000px;
@@ -56,7 +57,7 @@
5657
.accessibility-skip-to-content:focus {
5758
display: block;
5859
position: absolute;
59-
left: 200px;
60+
left: 180px;
6061
}
6162

6263
/* Calendar */

plugins/CoreHome/stylesheets/layout.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ ul.browser-default {
1414
nav {
1515
background-color: @theme-color-header-background !important;
1616

17+
a:focus-visible,
18+
button:focus-visible {
19+
outline-color: @theme-color-focus-ring-alternative;
20+
}
21+
1722
.brand-logo {
1823
font-size: 30px;
1924
}

plugins/CoreHome/stylesheets/selector.less

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,20 @@
33
line-height: 0;
44

55
span.title,
6-
a.title {
6+
a.title,
7+
button.title {
78
.font-default(11px, 12px);
89
display: inline-block;
910
width: 100%;
1011
padding: 10px 15px 11px 13px;
12+
background-color: transparent;
13+
border: none;
14+
1115
white-space: nowrap;
1216
cursor: pointer;
1317
text-transform: uppercase;
1418
text-decoration: none;
19+
text-align: center;
1520
color: @theme-color-text;
1621

1722
&.activityIndicator {

plugins/CoreHome/templates/_logo.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<span id="logo" class="logo brand-logo {% if centeredLogo is defined and centeredLogo %}center{% endif %}">
22
{% if logoLink is not defined or logoLink is not empty %}
3-
<a href="{{ logoLink|default('index.php') }}" tabindex="-1"
3+
<a href="{{ logoLink|default('index.php') }}" tabindex="3"
44
title="{% if isCustomLogo %}{{ 'General_PoweredBy'|translate }} {% endif %}Matomo{% if not isCustomLogo %} # {{ 'General_OpenSourceWebAnalytics'|translate }}{% endif %}"
55
>
66
{% endif %}
77
{% if hasSVGLogo %}
8-
<img src='{{ logoSVG }}?matomo' tabindex="3"
8+
<img src='{{ logoSVG }}?matomo'
99
alt="{% if isCustomLogo %}{{ 'General_PoweredBy'|translate }} {% endif %}Matomo"
1010
class="{% if not isCustomLogo %}default-piwik-logo{% endif %}" />
1111
{% else %}

plugins/Morpheus/stylesheets/general/_default.less

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ a {
131131
}
132132
}
133133

134+
a:focus-visible,
135+
button:focus-visible {
136+
outline: 2px solid @theme-color-focus-ring;
137+
outline-offset: -2px;
138+
}
139+
134140

135141
/* Make sure the scroll bar is always displayed so the content does not shift when reloading menu with/without scrollbar */
136142
html {

plugins/Morpheus/stylesheets/uibase/_header.less

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11

22
#root {
33
#logo {
4-
padding-left: 16px;
5-
padding-top: 6px;
4+
display: block;
5+
height: 100%;
6+
7+
& > a {
8+
display: flex;
9+
align-items: center;
10+
height: 100%;
11+
padding-left: 1rem;
12+
padding-right: 1rem;
13+
14+
text-decoration: none;
15+
}
616

717
img {
818
max-height: 32px;
@@ -12,10 +22,6 @@
1222
}
1323
}
1424
}
15-
16-
#logo > a {
17-
text-decoration: none;
18-
}
1925
}
2026

2127
#javascriptDisabled,

0 commit comments

Comments
 (0)