Skip to content

Commit c6a0c89

Browse files
committed
Remove opacity from lightbox pagination dots
1 parent 14fb0c7 commit c6a0c89

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

dist/index.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.min.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/lightbox.css

+17-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
.lightbox > .overlay__scrim.bg-white + .lightbox__dialog,
2+
.lightbox[data-theme="light"] > .overlay__scrim.bg-background + .lightbox__dialog,
3+
.lightbox:not([data-theme]) > .overlay__scrim.bg-background + .lightbox__dialog {
4+
--lightbox-active-color: #808080;
5+
--lightbox-inactive-color: #bfbfbf;
6+
}
7+
8+
.lightbox > .overlay__scrim.bg-black + .lightbox__dialog,
9+
.lightbox[data-theme="dark"] > .overlay__scrim.bg-background + .lightbox__dialog,
10+
.lightbox[data-theme="high-contrast"] > .overlay__scrim.bg-background + .lightbox__dialog {
11+
--lightbox-active-color: #a6a6a6;
12+
--lightbox-inactive-color: #666666;
13+
}
14+
115
.lightbox {
216
position: fixed;
317
top: 0;
@@ -40,7 +54,7 @@
4054
.lightbox__next,
4155
.lightbox__previous,
4256
.lightbox__close {
43-
color: gray;
57+
color: var(--lightbox-active-color);
4458
}
4559

4660
.lightbox__next,
@@ -86,10 +100,9 @@
86100
width: var(--spacing-lg);
87101
height: var(--spacing-lg);
88102
border-radius: 50%;
89-
background-color: gray;
90-
opacity: var(--opacity-disabled);
103+
background-color: var(--lightbox-inactive-color);
91104
}
92105

93106
.lightbox__pagination-dot.selected {
94-
opacity: 1;
107+
background-color: var(--lightbox-active-color);
95108
}

0 commit comments

Comments
 (0)