You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be nice to be able to use a standard select dropdown as an option as well as handle keyboard navigation properly. Currently, hidden options are still tabbable even when the dropdown is collapsed. Also, the up/down arrow keys should be able to navigate the options within the dropdown and hitting the space bar should trigger selecting the focused item.
The text was updated successfully, but these errors were encountered:
A select element is hard to style and cannot be used for the font previews:
The <select> element is notoriously difficult to style productively with CSS. You can affect certain aspects like any element — for example, manipulating the box model, the displayed font, etc., and you can use the appearance property to remove the default system appearance.
However, these properties don't produce a consistent result across browsers, and it is hard to do things like line different types of form element up with one another in a column. The <select> element's internal structure is complex, and hard to control. If you want to get full control, you should consider using a library with good facilities for styling form widgets, or try rolling your own dropdown menu using non-semantic elements, JavaScript, and WAI-ARIA to provide semantics.
Would be nice to be able to use a standard select dropdown as an option as well as handle keyboard navigation properly. Currently, hidden options are still tabbable even when the dropdown is collapsed. Also, the up/down arrow keys should be able to navigate the options within the dropdown and hitting the space bar should trigger selecting the focused item.
The text was updated successfully, but these errors were encountered: