Skip to content
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

fix(material/core): incorrect validation in get-theme-color #29994

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

crisbeto
Copy link
Member

Fixes that the get-theme-color function was incorrectly validating its number of arguments. We were always checking if the arguments are between 2 and 4, whereas it actually accepts either 2 or 3 for M3 themes and between 2 and 4 for M2 themes.

Fixes #29819.

@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Nov 10, 2024
@crisbeto crisbeto requested a review from a team as a code owner November 10, 2024 08:04
@crisbeto crisbeto requested review from mmalerba and andrewseguin and removed request for a team November 10, 2024 08:04
@crisbeto crisbeto force-pushed the 29819/get-theme-color-inconsistency branch from 7b58274 to cc693d0 Compare November 10, 2024 08:12
Fixes that the `get-theme-color` function was incorrectly validating its number of arguments. We were always checking if the arguments are between 2 and 4, whereas it actually accepts either 2 or 3 for M3 themes and between 2 and 4 for M2 themes.

Fixes angular#29819.
@crisbeto crisbeto force-pushed the 29819/get-theme-color-inconsistency branch from cc693d0 to e3288de Compare November 10, 2024 09:35
@crisbeto crisbeto removed the request for review from mmalerba November 11, 2024 12:57
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Nov 11, 2024
@crisbeto crisbeto merged commit fe631c5 into angular:main Nov 11, 2024
21 of 23 checks passed
crisbeto added a commit that referenced this pull request Nov 11, 2024
Fixes that the `get-theme-color` function was incorrectly validating its number of arguments. We were always checking if the arguments are between 2 and 4, whereas it actually accepts either 2 or 3 for M3 themes and between 2 and 4 for M2 themes.

Fixes #29819.

(cherry picked from commit fe631c5)
crisbeto added a commit that referenced this pull request Nov 11, 2024
Fixes that the `get-theme-color` function was incorrectly validating its number of arguments. We were always checking if the arguments are between 2 and 4, whereas it actually accepts either 2 or 3 for M3 themes and between 2 and 4 for M2 themes.

Fixes #29819.

(cherry picked from commit fe631c5)
@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 Dec 12, 2024
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 target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(get-theme-color): Function get-theme-color throws error with 4 arguments
2 participants