Skip to content

Commit

Permalink
fix(checkbox): checkbox animation works in Safari (#594)
Browse files Browse the repository at this point in the history
* fix for checkbox opacity issues in safari

* readio

* Revert "readio"

This reverts commit db62acf.

* updates based on comment
  • Loading branch information
sendilkumarn authored and jelbourn committed Jun 2, 2016
1 parent 2d9f4c4 commit 0a9fb83
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/components/checkbox/checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ md-checkbox {
width: $md-checkbox-size;

[dir="rtl"] & {
margin:{
margin: {
left: $md-checkbox-item-spacing;
right: auto;
}
Expand All @@ -265,9 +265,7 @@ md-checkbox {
.md-checkbox-background {
@extend %md-checkbox-outer-box;

align-items: center;
background-color: $md-checkbox-background-color;
opacity: 0;
align-items: center;
display: inline-flex;
justify-content: center;
transition: background-color $md-checkbox-transition-duration
Expand Down Expand Up @@ -333,15 +331,15 @@ md-checkbox {
.md-checkbox-mixedmark {
transform: scaleX(1) rotate(-45deg);
}

.md-checkbox-background {
opacity: 1;
background-color: $md-checkbox-background-color;
}
}

.md-checkbox-indeterminate {
.md-checkbox-background {
opacity: 1;
background-color: $md-checkbox-background-color;
}

.md-checkbox-checkmark {
Expand All @@ -359,6 +357,13 @@ md-checkbox {
}
}


.md-checkbox-unchecked {
.md-checkbox-background {
background-color: transparent;
}
}

.md-checkbox-disabled {
// NOTE(traviskaufman): While the spec calls for translucent blacks/whites for disabled colors,
// this does not work well with elements layered on top of one another. To get around this we
Expand Down

0 comments on commit 0a9fb83

Please sign in to comment.