Skip to content

Commit ba6d375

Browse files
committed
refactor(popover slot): use css variables from rb-popover v0.0.16 to style it
1 parent 34e3568 commit ba6d375

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

src/client/styles/layout/popover.scss

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
11
/***************
22
* POPOVER SLOT
33
***************/
4+
::slotted([slot="popover"]) {
5+
--rb-popover-trigger-transition: none; // match label transition
6+
--rb-popover-default-caption-bg: #f7f7f7 !important; // match popover neutral colors
7+
--rb-popover-default-caption-color: #5f6e7e !important;
8+
--rb-popover-default-trigger-color: 'inherit' !important; // match control state color
9+
--rb-popover-default-trigger-color-hover: 'inherit' !important;
10+
--rb-popover-trigger-opacity: .75; // lighten up color
11+
--rb-popover-trigger-opacity-hover: .55;
12+
.active &, .invalid & {
13+
--rb-popover-trigger-opacity: .8;
14+
--rb-popover-trigger-opacity-hover: .6;
15+
}
16+
}
17+
418
.with-label ::slotted([slot="popover"]) {
519
position: relative;
6-
top: .5px;
720
left: -1px;
821
margin-right: 3px;
922
}

src/client/styles/style/colors.scss

-3
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,5 @@
2323
.label, .subtext, .sublabel {
2424
color: mapGet($formControlColors, text, invalid, default);
2525
}
26-
::slotted([slot="popover"]) {
27-
--rb-popover-default-trigger-color: mapGet($formControlColors, text, invalid, default);
28-
}
2926
}
3027
}

0 commit comments

Comments
 (0)