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

Commit

Permalink
unique id gen
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiomkar committed Jul 8, 2019
1 parent c7002a0 commit 1ecb6c3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions packages/mdc-checkbox/_functions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,10 @@

@import "@material/theme/functions";

$mdc-checkbox-container-keyframes-uid_: -1;

@function mdc-checkbox-transition-enter($property, $delay: 0ms, $duration: $mdc-checkbox-transition-duration) {
@return mdc-animation-enter($property, $duration, $delay);
}

@function mdc-checkbox-transition-exit($property, $delay: 0ms, $duration: $mdc-checkbox-transition-duration) {
@return mdc-animation-exit-temporary($property, $duration, $delay);
}

@function mdc-checkbox-container-keyframes-uid_() {
$mdc-checkbox-container-keyframes-uid_: $mdc-checkbox-container-keyframes-uid_ + 1 !global;

@return $mdc-checkbox-container-keyframes-uid_;
}
2 changes: 1 addition & 1 deletion packages/mdc-checkbox/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@
}

@if $generate-keyframes {
$uid: mdc-checkbox-container-keyframes-uid_();
$uid: unique-id();
$anim-selector: if(&, "&.mdc-checkbox--anim", ".mdc-checkbox--anim");

@include mdc-feature-targets($feat-animation, $feat-color) {
Expand Down

0 comments on commit 1ecb6c3

Please sign in to comment.