Skip to content

Use customizable select for version pickers#167

Merged
mansona merged 2 commits into
ember-learn:mainfrom
tcjr:new-select
Jun 26, 2026
Merged

Use customizable select for version pickers#167
mansona merged 2 commits 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 f7d998d
🔍 Latest deploy log https://app.netlify.com/projects/upgrade-guide/deploys/6a3e9bd66a7a1f142a11b565
😎 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.

@mansona mansona left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great 🎉

@mansona mansona merged commit 3dfc053 into ember-learn:main Jun 26, 2026
6 checks passed
@tcjr tcjr deleted the new-select branch June 26, 2026 16:42
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.

2 participants