Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

fix(checkbox): Fixed hover focus colors for unchecked checkbox #4868

Merged
merged 12 commits into from
Jul 10, 2019

Conversation

abhiomkar
Copy link
Collaborator

@abhiomkar abhiomkar commented Jul 1, 2019

Description

  • Updated mdc-checkbox-focus-indicator mixin to allow customizing ripple color for checked checkboxes. Previously mdc-checkbox-focus-indicator use to only set color for JS disabled checkboxes.
  • Included mdc-checkbox-focus-indicator mixin to .mdc-checkbox class name since this mixin uses state selectors such as --selected with root class.
  • Updated screenshot files to include --selected class name for checked checkboxes.

Refs #2949

@abhiomkar abhiomkar requested a review from moog16 July 1, 2019 20:48
@abhiomkar abhiomkar force-pushed the fix/checkbox_ripple branch from f81594d to 7bc94eb Compare July 2, 2019 19:52
@codecov-io
Copy link

Codecov Report

Merging #4868 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4868      +/-   ##
==========================================
+ Coverage   98.86%   98.88%   +0.01%     
==========================================
  Files         119      119              
  Lines        5650     5823     +173     
  Branches      749      778      +29     
==========================================
+ Hits         5586     5758     +172     
- Misses         63       64       +1     
  Partials        1        1
Impacted Files Coverage Δ
packages/mdc-chips/chip/component.ts 99.07% <100%> (+1.63%) ⬆️
packages/mdc-chips/chip-set/component.ts 97.33% <100%> (-1.08%) ⬇️
packages/mdc-chips/chip/foundation.ts 100% <100%> (ø) ⬆️
packages/mdc-chips/chip-set/foundation.ts 100% <100%> (ø) ⬆️
packages/mdc-dialog/foundation.ts 98.68% <0%> (-0.66%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0657504...d16ba6f. Read the comment docs.

@codecov-io
Copy link

codecov-io commented Jul 2, 2019

Codecov Report

Merging #4868 into master will decrease coverage by 0.3%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4868      +/-   ##
==========================================
- Coverage   99.16%   98.86%   -0.31%     
==========================================
  Files         119      119              
  Lines        5650     5650              
  Branches      749      749              
==========================================
- Hits         5603     5586      -17     
- Misses         46       63      +17     
  Partials        1        1
Impacted Files Coverage Δ
packages/mdc-radio/component.ts 87.5% <0%> (-8.34%) ⬇️
packages/mdc-switch/component.ts 91.37% <0%> (-6.9%) ⬇️
packages/mdc-ripple/util.ts 92.68% <0%> (-4.88%) ⬇️
packages/mdc-auto-init/index.ts 95.83% <0%> (-4.17%) ⬇️
packages/mdc-ripple/component.ts 96.22% <0%> (-3.78%) ⬇️
packages/mdc-base/component.ts 96.42% <0%> (-3.58%) ⬇️
packages/mdc-tab/component.ts 95.08% <0%> (-3.28%) ⬇️
packages/mdc-checkbox/component.ts 95.83% <0%> (-1.05%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d393fb5...e522b7c. Read the comment docs.

@abhiomkar abhiomkar changed the base branch from master to develop July 2, 2019 19:59
@abhiomkar abhiomkar force-pushed the fix/checkbox_ripple branch from d16ba6f to 0145eb4 Compare July 2, 2019 20:30
@googlebot
Copy link

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this state. It's up to you to confirm consent of all the commit author(s), set the cla label to yes (if enabled on your project), and then merge this pull request when appropriate.

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added cla: no and removed cla: yes labels Jul 2, 2019
@abhiomkar abhiomkar changed the base branch from develop to master July 2, 2019 20:30
@abhiomkar abhiomkar added cla: yes and removed cla: no labels Jul 2, 2019
@googlebot
Copy link

A Googler has manually verified that the CLAs look good.

(Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.)

ℹ️ Googlers: Go here for more info.

@googlebot
Copy link

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@abhiomkar
Copy link
Collaborator Author

Ready for re-review.

Copy link
Contributor

@moog16 moog16 left a comment

Choose a reason for hiding this comment

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

LGTM

Side Note - I see the secondary color flash when after animation. But I think we might already have a bug for this.

@abhiomkar abhiomkar force-pushed the fix/checkbox_ripple branch from c68d27a to b606e90 Compare July 8, 2019 18:56
@abhiomkar abhiomkar changed the base branch from master to develop July 8, 2019 19:03
@abhiomkar abhiomkar force-pushed the fix/checkbox_ripple branch from 4176292 to e8046e0 Compare July 8, 2019 19:06
@googlebot
Copy link

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this state. It's up to you to confirm consent of all the commit author(s), set the cla label to yes (if enabled on your project), and then merge this pull request when appropriate.

ℹ️ Googlers: Go here for more info.

@abhiomkar abhiomkar changed the base branch from develop to master July 8, 2019 19:06
@googlebot googlebot removed the cla: yes label Jul 8, 2019
@googlebot
Copy link

A Googler has manually verified that the CLAs look good.

(Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.)

ℹ️ Googlers: Go here for more info.

@googlebot googlebot removed the cla: no label Jul 8, 2019
@googlebot
Copy link

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@abhiomkar abhiomkar merged commit 1d8fbf5 into master Jul 10, 2019
@delete-merged-branch delete-merged-branch bot deleted the fix/checkbox_ripple branch July 10, 2019 14:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants