Skip to content

Commit 6f897cf

Browse files
authored
add custom group title border support
add a custom variable for styling the border of group headers, useful for adding a divider and such.
1 parent 1d96a9f commit 6f897cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/Select.svelte

+2
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,7 @@
841841
--groupTitleFontWeight: var(--group-title-font-weight);
842842
--groupTitlePadding: var(--group-title-padding);
843843
--groupTitleTextTransform: var(--group-title-text-transform);
844+
--groupTitleBorder: var(--group-title-border);
844845
--indicatorColor: var(--chevron-color);
845846
--indicatorHeight: var(--chevron-height);
846847
--indicatorWidth: var(--chevron-width);
@@ -1142,6 +1143,7 @@
11421143
overflow-x: hidden;
11431144
white-space: nowrap;
11441145
text-transform: var(--group-title-text-transform, uppercase);
1146+
border: var(--group-title-border, medium none color);
11451147
}
11461148
11471149
.empty {

0 commit comments

Comments
 (0)