Skip to content

Commit 00cae76

Browse files
committed
customization: make entire border configurable, not just color
this also makes it a bit cleaner to set the border to none in a variable instead of changing the color to transparent
1 parent 113fdbf commit 00cae76

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/autocomplete/autocomplete.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
--input-color: var(--gray-900);
2727
--input-bg: #fff;
28-
--input-border-color: var(--gray-300);
28+
--input-border: 1px solid var(--gray-300);
2929
--input-height: 47px;
3030
--input-shadow:
3131
rgba(0, 0, 0, 0) 0px 0px 0px 0px,
@@ -48,7 +48,7 @@
4848
rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
4949

5050
--result-item-color: var(--gray-900);
51-
--result-item-border-color: var(--gray-100);
51+
--result-item-border: 1px solid var(--gray-100);
5252
--result-item-active-color: var(--gray-900);
5353
--result-item-active-bg: var(--gray-100);
5454
--result-item-icon-color: var(--gray-500);
@@ -85,7 +85,7 @@
8585
height: var(--input-height);
8686
display: block;
8787
width: 100%;
88-
border: 1px solid var(--input-border-color);
88+
border: var(--input-border);
8989
padding:
9090
13px
9191
calc(12px + var(--loading-size) + 12px)
@@ -143,7 +143,7 @@
143143
padding: 13px 12px;
144144
cursor: default;
145145
color: var(--result-item-color);
146-
border-bottom: 1px solid var(--result-item-border-color);
146+
border-bottom: var(--result-item-border);
147147
}
148148

149149
.result-item-icon {

0 commit comments

Comments
 (0)