Skip to content

Commit

Permalink
Adapt focus-visible styles for checkboxes on images
Browse files Browse the repository at this point in the history
Signed-off-by: julia.kirschenheuter <[email protected]>
  • Loading branch information
JuliaKirschenheuter committed Dec 18, 2023
1 parent ab8cc60 commit 4d77706
Show file tree
Hide file tree
Showing 25 changed files with 44 additions and 38 deletions.
4 changes: 2 additions & 2 deletions js/photos-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-main.js.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/photos-public.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-public.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/photos-sidebar.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-sidebar.js.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/photos-src_views_FaceContent_vue.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-src_views_FaceContent_vue.js.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions src/components/File.vue
Original file line number Diff line number Diff line change
Expand Up @@ -332,11 +332,17 @@ export default {
z-index: 1;
width: fit-content;

// Make the checkbox background round on hover.
:deep .checkbox-radio-switch__input:focus-visible + .checkbox-radio-switch__content,
.checkbox-radio-switch__input:focus-visible {
outline: 2px solid var(--color-main-text);
box-shadow: 0 0 0 3px var(--color-main-background);
outline-offset: 0px;
}

:deep .checkbox-radio-switch__content {
padding: 10px;
box-sizing: border-box;
background: var(--color-primary-element-light);
background: var(--color-main-background);

// Add a background to the checkbox so we do not see the image through it.
&::after {
Expand Down

0 comments on commit 4d77706

Please sign in to comment.