Skip to content

Commit

Permalink
Merge pull request #161 from projectblacklight/masonry-keyboard-nav
Browse files Browse the repository at this point in the history
Adjust css of masonry view so keyboard navigation works and links are visible on focus
  • Loading branch information
corylown authored Dec 10, 2024
2 parents 8bb3ec8 + aa22136 commit 1c4b633
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions app/assets/stylesheets/blacklight_gallery/_masonry.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@
padding: 0;
margin: 0;

&:hover, &:focus {
&:hover, &:focus, &:focus-within {
.caption-area {
display: block;
left: auto;
width: auto;
height: auto;
clip: unset;
max-height: 75%;
overflow-y: scroll;
}
}

Expand Down Expand Up @@ -34,14 +39,14 @@
}
@extend .bg-dark;
@extend .text-white;
display: none;
padding: 5px 7px;
background-color: rgba(0,0,0,0.5) !important;
position: absolute;
bottom: 0;
overflow-x: hidden;
overflow-y: scroll;
max-height: 75%;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
}

.document-counter {
Expand Down

0 comments on commit 1c4b633

Please sign in to comment.