Skip to content

Commit

Permalink
fix(mosaic): fix thumbnail focus outline cropped by parent overflow (#…
Browse files Browse the repository at this point in the history
…1152)

DSW-253
  • Loading branch information
gcornut authored Aug 7, 2024
1 parent d15d2ee commit 404229e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- `Lightbox`: fix a11y color contrast on the close button.
- `Mosaic`: fix thumbnail focus outline cropped by parent overflow.

## [3.7.5][] - 2024-07-25

Expand Down
5 changes: 4 additions & 1 deletion packages/lumx-core/src/scss/components/mosaic/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

position: relative;
padding-top: map.get($lumx-thumbnail-aspect-ratio, "horizontal");
overflow: hidden;

&__wrapper {
position: absolute;
Expand Down Expand Up @@ -50,6 +49,10 @@
flex-direction: column;
margin: 1px;

&:has([data-focus-visible-added]) {
z-index: 1;
}

#{$self}--has-1-thumbnail & {
&:nth-child(1) {
grid-area: b;
Expand Down

0 comments on commit 404229e

Please sign in to comment.