Skip to content

fix(material/button): FAB emitting invalid elevation tokens #31028

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 5, 2025

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented May 5, 2025

The FAB was re-defining its elevation tokens for each variant, however the logic that converts elevation values from numbers to shadows was running only on the top-level tokens. At runtime this leads to no shadow being shown, because we were emitting a number.

These changes remove the elevation overrides for the variants, because they're the same as the base.

The FAB was re-defining its elevation tokens for each variant, however the logic that converts elevation values from numbers to shadows was running only on the top-level tokens. At runtime this leads to no shadow being shown, because we were emitting a number.

These changes remove the elevation overrides for the variants, because they're the same as the base.
@crisbeto crisbeto added the target: major This PR is targeted for the next major release label May 5, 2025
@crisbeto crisbeto requested a review from a team as a code owner May 5, 2025 09:15
@crisbeto crisbeto requested review from adolgachev and mmalerba and removed request for a team May 5, 2025 09:15
@crisbeto crisbeto removed request for adolgachev and mmalerba May 5, 2025 12:05
@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 and removed target: major This PR is targeted for the next major release labels May 5, 2025
@crisbeto crisbeto merged commit 5ee7d79 into angular:main May 5, 2025
29 of 32 checks passed
wildcardalice pushed a commit to wildcardalice/components that referenced this pull request May 12, 2025
…31028)

The FAB was re-defining its elevation tokens for each variant, however the logic that converts elevation values from numbers to shadows was running only on the top-level tokens. At runtime this leads to no shadow being shown, because we were emitting a number.

These changes remove the elevation overrides for the variants, because they're the same as the base.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: material/button 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