Closed matt-tyas closed 2 years ago
I think an inline SVG here would be more performant. However, we're not setup for consumers of the forms to easily pick this change up to the markup. So I think for now this CSS change will work well.
FYI @matt-tyas this approach (an inlined SVG background-image
) is how Bootstrap do their custom select arrows, so I think it's fine, and like you and Michael have said already, definitely the easiest approach for consumers to adopt and the frontend to support 👍
This ticket attempts to address the basic styling of a select drop down making it more consistent.
My main concern is how I've included the chevron as a background image on the select element itself. Probably not best practice, but the only way i could do it without adding a wrapping
div
. I didn't want to introduce new mark-up so the basic select can be used by only updating CSS.