Use chevron for dropdown icon

We should be able to use @extend .icon-chevron-down, but I couldn't get it to work. I'd like to have a better method for this, but we should upgrade our ancient FontAwesome before worrying about that.
This commit is contained in:
David Cook
2023-12-14 13:28:16 +11:00
parent 1776420d4a
commit f29c1d5797

View File

@@ -87,11 +87,19 @@
}
.ts-control {
padding-right: 0.5rem !important; // ts has a clever variable-based rule here, but it doesn't seem to work right.
padding: 0.5rem 0.75rem;
padding-right: 1rem !important; // ts has a clever variable-based rule here, but it doesn't seem to work right.
overflow: hidden;
// Icon: Override TS icon with icon-chevron-down
&::after {
content: "\f078";
font-family: FontAwesome;
border: none;
top: 1em;
}
&:not(.rtl)::after {
right: 0.5rem;
right: 1.5rem;
}
.item {
@@ -102,6 +110,12 @@
text-wrap: nowrap;
}
}
&.dropdown-active .ts-control {
&::after {
content: "\f077"; // chevron-up
}
}
}
// 'no-input' mode, like a native select (hide text input).