Skip to content

fix(slide-toggle): using incorrect colors when disabled #13444

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
Nov 14, 2018

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Oct 5, 2018

Based on the latest Material Design spec, disabled slide toggles are supposed to retain their color, but become slightly opaque.

For reference:
spec

@crisbeto crisbeto added P2 The issue is important to a large percentage of users, with a workaround target: major This PR is targeted for the next major release labels Oct 5, 2018
@crisbeto crisbeto requested a review from devversion as a code owner October 5, 2018 13:48
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Oct 5, 2018
@@ -40,6 +40,8 @@ $mat-slide-toggle-bar-track-width: $mat-slide-toggle-bar-width - $mat-slide-togg
}

&.mat-disabled {
opacity: 0.38;
Copy link
Member

Choose a reason for hiding this comment

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

Add a comment that explains how you determined the opacity?

@crisbeto crisbeto force-pushed the disabled-slide-toggle-color branch from 2d1f19c to 166a7ae Compare October 5, 2018 15:11
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Oct 5, 2018
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

@crisbeto crisbeto added target: patch This PR is targeted for the next patch release and removed target: major This PR is targeted for the next major release labels Oct 18, 2018
Based on the latest Material Design spec, disable slide toggles are supposed to retain their color, but become slightly opaque.
@crisbeto crisbeto force-pushed the disabled-slide-toggle-color branch from 166a7ae to a082ad6 Compare November 14, 2018 21:36
@andrewseguin andrewseguin merged commit dd9f267 into angular:master Nov 14, 2018
josephperrott pushed a commit that referenced this pull request Nov 19, 2018
Based on the latest Material Design spec, disable slide toggles are supposed to retain their color, but become slightly opaque.
@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 Sep 10, 2019
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 cla: yes PR author has agreed to Google's Contributor License Agreement 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants