Skip to content

Commit 9a8379b

Browse files
author
Ibrahim Haizel
committed
style: add border-bottom to choices input for improved visual consistency
1 parent f82c962 commit 9a8379b

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

src/lib/components/ui/MultiSelectSearchAutocomplete.svelte

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,41 @@
992992
min-height: 46px; /* align baseline height to Search button */
993993
}
994994
995+
/* Add border-bottom to choices input with more specific selectors */
996+
:global(
997+
.gem-c-select-with-search .choices[data-type*="select-one"] .choices__input
998+
) {
999+
border-bottom: 1px solid #ddd;
1000+
margin: 0;
1001+
}
1002+
1003+
/* Also target the cloned input that appears when dropdown is active */
1004+
:global(
1005+
.gem-c-select-with-search
1006+
.choices[data-type*="select-one"]
1007+
.choices__input--cloned
1008+
) {
1009+
border-bottom: 1px solid #ddd;
1010+
}
1011+
1012+
/* Target the input when dropdown is active */
1013+
:global(
1014+
.gem-c-select-with-search
1015+
.choices[data-type*="select-one"].is-active
1016+
.choices__input
1017+
) {
1018+
border-bottom: 1px solid #ddd;
1019+
}
1020+
1021+
/* Target the input when focused */
1022+
:global(
1023+
.gem-c-select-with-search
1024+
.choices[data-type*="select-one"]
1025+
.choices__input:focus
1026+
) {
1027+
border-bottom: 1px solid #ddd;
1028+
}
1029+
9951030
:global(.govuk-label) {
9961031
font-family: "GDS Transport", arial, sans-serif;
9971032
-webkit-font-smoothing: antialiased;

0 commit comments

Comments
 (0)