Files
web/packages/design-system/lib/components/ImageGallery/imageGallery.module.css
Matilda Landström fc857ad58f Merged in SW-2064-lightbox-updates (pull request #3347)
feat(SW-2064): Lightbox updates

* chore(SW-2064): add opacity to not selected images

* chore(SW-2064): set main image as the first image in thumbnail

* chore(SW-2064): disable navigation buttons on first and last image

* fix(SW-2064): use cx

* Revert "chore(SW-2064): disable navigation buttons on first and last image"

This reverts commit 9c5acd8a02b83740f35d1cfa88bfba6b006ba947.

* refactor(SW-2064): create ImageCounter component

* refactor(SW-2064)

* chore(SW-2064): add enter keu down on main image


Approved-by: Erik Tiekstra
2026-01-08 12:10:03 +00:00

40 lines
560 B
CSS

.wrapper {
position: relative;
width: 100%;
height: 100%;
border-radius: inherit;
}
.imageCount {
position: absolute;
bottom: var(--Space-x2);
right: var(--Space-x2);
}
.imageCountBottom {
bottom: var(--Space-x2);
top: auto;
}
.imageCountTop {
top: var(--Space-x2);
bottom: auto;
}
.triggerArea {
background-color: transparent;
border-width: 0;
padding: 0;
position: absolute;
inset: 0;
cursor: pointer;
border-radius: inherit;
}
.image {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: inherit;
}