Skip to content

Commit 2b88826

Browse files
enhancement: add focus styles for image gallery view #6304
1 parent 64dc82c commit 2b88826

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add focus styles for image gallery view
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.image-gallery-icon:focus {
2+
outline: 2px solid @linkColor;
3+
outline-offset: 2px;
4+
}
5+
6+
.image-gallery-thumbnail:focus {
7+
outline: 2px solid @linkColor;
8+
outline-offset: 2px;
9+
}

packages/volto/theme/themes/pastanaga/extras/main.less

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ button {
156156
outline: none;
157157
}
158158
}
159+
159160
//checkbox overrides
160161
/* Unchecked */
161162
.ui.checkbox {
@@ -398,8 +399,10 @@ button {
398399

399400
&::-webkit-scrollbar {
400401
width: 3px;
401-
height: 3px; /* scrollbar height */
402-
background: transparent; /* optional: just make scrollbar invisible */
402+
height: 3px;
403+
/* scrollbar height */
404+
background: transparent;
405+
/* optional: just make scrollbar invisible */
403406
}
404407
}
405408

@@ -426,6 +429,7 @@ button {
426429
flex-wrap: wrap;
427430
}
428431
}
432+
429433
//Add translation, Compare translation
430434
#page-add-translation,
431435
#page-compare-translation {
@@ -686,7 +690,8 @@ img.responsive {
686690
padding: 0;
687691
border: 0;
688692
margin: -1px;
689-
clip: rect(1px, 1px, 1px, 1px); /* IE-style CSS for compatibility */
693+
clip: rect(1px, 1px, 1px, 1px);
694+
/* IE-style CSS for compatibility */
690695
white-space: nowrap;
691696
word-wrap: normal;
692697
}
@@ -713,4 +718,5 @@ img.responsive {
713718
@import 'views';
714719
@import 'toc';
715720
@import 'grid.less';
721+
@import 'gallery.less';
716722
.loadUIOverrides();

0 commit comments

Comments
 (0)