Skip to content

feat(material/select): add a styling token for the panel shape - #34119

Merged
crisbeto merged 1 commit into
angular:mainfrom
lxminarayn:feat/select-container-shape
Nov 26, 2026
Merged

crisbeto merged 1 commit into
angular:mainfrom
lxminarayn:feat/select-container-shape

Conversation

@lxminarayn

Copy link
Copy Markdown
Contributor

Adds a container-shape token to select-overrides so the border radius of the select panel can
be customized. Previously it was hardcoded to 4px, while the autocomplete and menu panels already
expose the same token.

The default rendering doesn't change. In M3 the value comes from corner-extra-small, so apps that
customize that system token will see the select panel follow it, like the autocomplete and menu
panels.

Apps can set it with mat.select-overrides((container-shape: ...)).

@angular-robot angular-robot Bot added detected: feature PR contains a feature commit area: material/select labels Nov 12, 2026
@pullapprove
pullapprove Bot requested review from crisbeto and ok7sai November 12, 2026 08:49
@lxminarayn
lxminarayn force-pushed the feat/select-container-shape branch from 8fe8a5b to 64a8545 Compare November 18, 2026 09:52
@lxminarayn

Copy link
Copy Markdown
Contributor Author

@crisbeto did you get a chance to check on this PR?

Previously the border radius of the select panel was hardcoded to 4px and couldn't be changed
through tokens. Adds a `container-shape` token to `select-overrides`, matching the existing token
of the autocomplete and menu panels. The default stays 4px. In M3 the value comes from
`corner-extra-small`, so the panel now follows that system token like the other two panels.
@lxminarayn
lxminarayn force-pushed the feat/select-container-shape branch from 64a8545 to b245c4b Compare November 26, 2026 01:43
@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker target: minor This PR is targeted for the next minor release labels Nov 26, 2026
@crisbeto
crisbeto merged commit df58663 into angular:main Nov 26, 2026
32 of 35 checks passed
@crisbeto

Copy link
Copy Markdown
Member

This PR was merged into the repository. The changes were merged into the following branches:

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

Labels

action: merge The PR is ready for merge by the caretaker area: material/select detected: feature PR contains a feature commit target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants