Skip to content

Commit 111e685

Browse files
authored
edit: fix select component ui bug (#103)
1 parent 12eba39 commit 111e685

3 files changed

Lines changed: 27 additions & 4 deletions

File tree

.changeset/flat-icons-drive.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@studiocms/ui": patch
3+
---
4+
5+
Fixes Select components UI bug, where list items had no background and showed bullet points

packages/studiocms_ui/src/components/SearchSelect/searchselect.css

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@
5050
left: 0;
5151
display: none;
5252
max-height: 300px;
53-
border: 1px solid hsl(var(--border));
53+
border: 1px solid var(--border);
5454
border-radius: var(--radius-md);
55-
background-color: hsl(var(--background-step-2));
55+
background-color: var(--background-step-2);
5656
z-index: 90;
5757
box-shadow: 0px 4px 8px var(--shadow);
5858
}
@@ -62,6 +62,15 @@
6262
bottom: calc(100% - 1.5rem);
6363
}
6464

65+
.sui-search-select-dropdown-list {
66+
list-style: none;
67+
margin: 0;
68+
padding: 0;
69+
display: flex;
70+
flex-direction: column;
71+
width: 100%;
72+
}
73+
6574
.sui-search-select-option,
6675
.empty-search-results {
6776
padding: 0.5rem;

packages/studiocms_ui/src/components/Select/select.css

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@
9494
left: 0;
9595
display: none;
9696
max-height: 300px;
97-
border: 1px solid hsl(var(--border));
97+
border: 1px solid var(--border);
9898
border-radius: var(--radius-md);
99-
background-color: hsl(var(--background-step-2));
99+
background-color: var(--background-step-2);
100100
z-index: 90;
101101
box-shadow: 0px 4px 8px var(--shadow);
102102
}
@@ -110,6 +110,15 @@
110110
bottom: calc(100% + 0.25rem);
111111
}
112112

113+
.sui-select-dropdown-list {
114+
list-style: none;
115+
margin: 0;
116+
padding: 0;
117+
display: flex;
118+
flex-direction: column;
119+
width: 100%;
120+
}
121+
113122
.sui-select-option {
114123
padding: 0.5rem;
115124
cursor: pointer;

0 commit comments

Comments
 (0)