{"id":4233,"date":"2024-10-21T17:53:12","date_gmt":"2024-10-21T22:53:12","guid":{"rendered":"https:\/\/frontendmasters.com\/blog\/?p=4233"},"modified":"2024-10-21T17:53:12","modified_gmt":"2024-10-21T22:53:12","slug":"styleable-selects-inch-forward","status":"publish","type":"post","link":"https:\/\/frontendmasters.com\/blog\/styleable-selects-inch-forward\/","title":{"rendered":"Styleable Selects Inch Forward"},"content":{"rendered":"\n<p>The ability to style a <code>&lt;select><\/code> menu has long been high on list of web designer&#8217;s <em>want<\/em> lists. The inside part anyway; the part that opens up when you activate it. The <a href=\"https:\/\/moderncss.dev\/custom-select-styles-with-pure-css\/\">outside<\/a> we&#8217;ve been able to style for a while.<\/p>\n\n\n\n<p>Open UI did a bunch of research and even had a browser implementation of <code><a href=\"https:\/\/open-ui.org\/prototypes\/selectmenu\/\">&lt;selectmenu><\/a><\/code> to solve this for a while. But thankfully, we&#8217;re back at <code>&lt;select><\/code> with an &#8220;opt-in&#8221; via CSS, at least, that&#8217;s where <a href=\"https:\/\/developer.chrome.com\/blog\/rfc-customizable-select\">things are pointed<\/a>. <\/p>\n\n\n\n<p>There is <a href=\"https:\/\/offthemainthread.tech\/episode\/stylable-select-element\/\">a great episode of OTMT<\/a> where the get into it and Jake counts <em>ten<\/em> low-level platform features that enabled where we are now, and how that will accelerate allowing other stylable elements. (So cool.) There is an <a href=\"https:\/\/jakearchibald.com\/2024\/how-should-selectedoption-work\/#a-brief-intro-to-customisable-select\">awfully weird bit in the form of <code>&lt;selectedoption><\/code><\/a> that needs feedback. Amelia points out <a href=\"https:\/\/elk.zone\/front-end.social\/@AmeliaBR\/113329210233411101\">it&#8217;s kinda like SVG <code>&lt;use><\/code><\/a> elements, but that doesn&#8217;t make it any less weird.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The ability to style a &lt;select> menu has long been high on list of web designer&#8217;s want lists. The inside part anyway; the part that opens up when you activate it. The outside we&#8217;ve been able to style for a while. Open UI did a bunch of research and even had a browser implementation of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4234,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[29],"tags":[7,50],"class_list":["post-4233","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-the-beat","tag-css","tag-select"],"acf":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/frontendmasters.com\/blog\/wp-content\/uploads\/2024\/10\/select-parts_1920.png?fit=2294%2C1148&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/4233","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/comments?post=4233"}],"version-history":[{"count":1,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/4233\/revisions"}],"predecessor-version":[{"id":4235,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/4233\/revisions\/4235"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/media\/4234"}],"wp:attachment":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/media?parent=4233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/categories?post=4233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/tags?post=4233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}