Skip to content

Commit

Permalink
Remove transition from last color element
Browse files Browse the repository at this point in the history
Fix broken comparison option, fixes #286
  • Loading branch information
simonwep committed Jun 27, 2021
1 parent d988d5f commit 411cb1d
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/pickr.es5.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/pickr.es5.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/pickr.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/pickr.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/themes/classic.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/js/pickr.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ export default class Pickr {

// Check if color is locked
if (!options.comparison) {
_root.button.style.color = cssRGBaString;
_root.button.style.setProperty('--pcr-color', cssRGBaString);

// If the user changes the color, remove the cleared icon
_root.button.classList.remove('clear');
Expand Down
1 change: 0 additions & 1 deletion src/scss/themes/classic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

.pcr-last-color {
cursor: pointer;
transition: background-color 0.3s, box-shadow 0.3s;
border-radius: 0.15em 0.15em 0 0;
z-index: 2;
}
Expand Down

0 comments on commit 411cb1d

Please sign in to comment.