Skip to content

Commit

Permalink
fix(mosaic): fix parent overflow issue caused by negative inset
Browse files Browse the repository at this point in the history
  • Loading branch information
gcornut committed Feb 26, 2025
1 parent f590783 commit e262542
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
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

- `Tooltip`: remove placement style when hidden (closeMode=hide) to fix overflow issue
- `Mosaic`: remove negative inset that could break overflow of parent element

## [3.11.2][] - 2025-02-18

Expand Down
10 changes: 5 additions & 5 deletions packages/lumx-core/src/scss/components/mosaic/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@

&__wrapper {
position: absolute;
top: -1px;
right: -1px;
bottom: -1px;
left: -1px;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: grid;
gap: 1px;

#{$self}--has-1-thumbnail & {
grid: minmax(0, 1fr) / 1fr;
Expand Down Expand Up @@ -47,7 +48,6 @@
position: relative;
display: flex;
flex-direction: column;
margin: 1px;

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

0 comments on commit e262542

Please sign in to comment.