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): Focus indicator theme and color mixins should accept a basic color as well. #23016

Merged
merged 1 commit into from
Jun 22, 2021

Conversation

zelliott
Copy link
Collaborator

@zelliott zelliott commented Jun 18, 2021

As described in https://material.angular.io/guide/theming#customizing-strong-focus-indicators, the focus indicator theme and color mixins should allow the user to pass in a basic CSS color. This PR updates the mixins to allow this.

Alternatively, we could update the documentation to disallow this. I disabled the stylelint checks for these mixins because their new implementations aren't compatible with the checks.

@google-cla google-cla bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jun 18, 2021
…ept a basic color as well.

fix(core/material): Disable styelint for focus indicator theme mixins.
@zelliott zelliott marked this pull request as ready for review June 18, 2021 18:33
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM

@jelbourn jelbourn added G This is is related to a Google internal issue action: merge The PR is ready for merge by the caretaker P2 The issue is important to a large percentage of users, with a workaround target: patch This PR is targeted for the next patch release labels Jun 18, 2021
@mmalerba mmalerba added target: minor This PR is targeted for the next minor release and removed target: patch This PR is targeted for the next patch release labels Jun 22, 2021
@mmalerba mmalerba merged commit 6a8c965 into angular:master Jun 22, 2021
@literalpie
Copy link
Contributor

I think this should be considered a patch. Colors as an input was supported in 12.0, and is not supported in 12.1.x. I think this is an unintentional breaking change.

@jelbourn
Copy link
Member

jelbourn commented Jul 2, 2021

@mmalerba was this changed to minor due to merge conflicts?

wagnermaciel pushed a commit to wagnermaciel/components that referenced this pull request Jul 8, 2021
…ept a basic color as well. (angular#23016)

fix(core/material): Disable styelint for focus indicator theme mixins.
wagnermaciel added a commit that referenced this pull request Jul 8, 2021
…ept a basic color as well. (#23016) (#23134)

fix(core/material): Disable styelint for focus indicator theme mixins.

Co-authored-by: Zack Elliott <4220717+zelliott@users.noreply.github.com>
@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 Aug 2, 2021
@jelbourn jelbourn added the Accessibility This issue is related to accessibility (a11y) label Mar 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Accessibility This issue is related to accessibility (a11y) action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement G This is is related to a Google internal issue P2 The issue is important to a large percentage of users, with a workaround target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants