Skip to content

Use customizable select for version pickers#167

Open
tcjr wants to merge 1 commit into
ember-learn:mainfrom
tcjr:new-select
Open

Use customizable select for version pickers#167
tcjr wants to merge 1 commit into
ember-learn:mainfrom
tcjr:new-select

Conversation

@tcjr

@tcjr tcjr commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

This PR adds styles to the two version pickers.

It use the new(ish) built-in support for customizable select elements. This is available in Chrome 135 and Safari 27. The beauty of how customizable select works is that it literally uses the stock <select> element, so it works perfectly in browsers that don't yet support the standard (aka, Firefox). This means it is fully accessible and requires no markup hacks, positioning logic, or focus handling.

The problem being addressed is that the list of versions goes on and on and on. I updated it so the version options are displayed horizontally within their option group. The options and option groups are minimally styled, leaving everything else to the browser.

Before:

select-before

After:

select-after

See:

@netlify

netlify Bot commented Jun 10, 2026

Copy link
Copy Markdown

Deploy Preview for upgrade-guide ready!

Name Link
🔨 Latest commit 56edd69
🔍 Latest deploy log https://app.netlify.com/projects/upgrade-guide/deploys/6a29e7fd2802200008d46a2d
😎 Deploy Preview https://deploy-preview-167--upgrade-guide.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant