Skip to content

Commit 52b2f56

Browse files
Pytalnextcloud-command
authored andcommitted
Improve accessibility
Signed-off-by: Christopher Ng <chrng8@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
1 parent d42a28c commit 52b2f56

File tree

12 files changed

+56
-27
lines changed

12 files changed

+56
-27
lines changed

apps/settings/js/vue-settings-personal-info.js

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/settings/js/vue-settings-personal-info.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/settings/src/components/PersonalInfo/BiographySection/Biography.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ export default {
137137
font-family: var(--font-face);
138138
cursor: text;
139139

140-
&:hover {
140+
&:hover,
141+
&:focus,
142+
&:active {
141143
border-color: var(--color-primary-element) !important;
142144
outline: none !important;
143145
}

apps/settings/src/components/PersonalInfo/EmailSection/Email.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,9 @@ export default {
388388
.email__actions {
389389
opacity: 0.4 !important;
390390

391-
&:hover {
391+
&:hover,
392+
&:focus,
393+
&:active {
392394
opacity: 0.8 !important;
393395
}
394396

apps/settings/src/components/PersonalInfo/ProfileSection/EditProfileAnchorLink.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ a {
8888
margin-right: 8px;
8989
}
9090

91-
&:hover {
91+
&:hover,
92+
&:focus,
93+
&:active {
9294
opacity: 0.8;
9395
background-color: rgba(127, 127, 127, .25);
9496
}

apps/settings/src/components/PersonalInfo/ProfileSection/ProfilePreviewCard.vue

+8-1
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,17 @@ export default {
105105
font-weight: bold;
106106
box-shadow: 0 2px 9px var(--color-box-shadow);
107107

108-
&:hover {
108+
&:hover,
109+
&:focus,
110+
&:active {
109111
box-shadow: 0 2px 12px var(--color-box-shadow);
110112
}
111113

114+
&:focus-visible {
115+
outline: var(--color-main-text) solid 1px;
116+
outline-offset: 3px;
117+
}
118+
112119
&.disabled {
113120
filter: grayscale(1);
114121
opacity: 0.5;

apps/settings/src/components/PersonalInfo/shared/AddButton.vue

+10-4
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,19 @@ export default {
6161
}
6262
}
6363

64-
&:hover {
64+
&:hover,
65+
&:focus,
66+
&:active {
6567
background-color: rgba(127, 127, 127, .15);
6668
}
6769

68-
&:enabled:hover {
69-
background-color: rgba(127, 127, 127, .25);
70-
opacity: 0.8 !important;
70+
&:enabled {
71+
&:hover,
72+
&:focus,
73+
&:active {
74+
background-color: rgba(127, 127, 127, .25);
75+
opacity: 0.8 !important;
76+
}
7177
}
7278
}
7379
</style>

apps/settings/src/components/PersonalInfo/shared/FederationControl.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,9 @@ export default {
185185
.federation-actions--additional {
186186
opacity: 0.4 !important;
187187

188-
&:hover {
188+
&:hover,
189+
&:focus,
190+
&:active {
189191
opacity: 0.8 !important;
190192
}
191193
}

core/js/dist/profile.js

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/js/dist/profile.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/src/components/Profile/PrimaryActionButton.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ export default {
9696
}
9797
}
9898

99-
&:hover {
99+
&:hover,
100+
&:focus,
101+
&:active {
100102
background-color: var(--color-primary-element-light);
101103
}
102104
}

core/src/views/Profile.vue

+9-3
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,9 @@ $content-max-width: 640px;
364364
line-height: 44px;
365365
font-weight: bold;
366366

367-
&:hover {
367+
&:hover,
368+
&:focus,
369+
&:active {
368370
color: var(--color-primary-text);
369371
background-color: var(--color-primary-element-light);
370372
}
@@ -386,7 +388,9 @@ $content-max-width: 640px;
386388
&.interactive {
387389
cursor: pointer;
388390

389-
&:hover {
391+
&:hover,
392+
&:focus,
393+
&:active {
390394
background-color: var(--color-main-background);
391395
color: var(--color-main-text);
392396
border-radius: var(--border-radius-pill);
@@ -438,7 +442,9 @@ $content-max-width: 640px;
438442
.avatardiv__user-status {
439443
cursor: pointer;
440444

441-
&:hover {
445+
&:hover,
446+
&:focus,
447+
&:active {
442448
box-shadow: 0 3px 6px var(--color-box-shadow);
443449
}
444450
}

0 commit comments

Comments
 (0)