-
-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix(hslToRgb): correct % for potential negative hue Due to the Javascript modulo bug (https://stackoverflow.com/questions/4467539/javascript-modulo-gives-a-negative-result-for-negative-numbers), any negative value for hue results in a bug where the resulting color will be black. Negative hues should cycle through to 359, so that functions like `adjustHue()` can provide consistent behavior for all colors. fix #437 * refactor(adjustHue): remove redundant % Since the % operation is already performed inside `hslToRgb()` in `src/internalHelpers/_hslToRgb.js` (which `adjustHue()` eventually calls through `toColorString()`), this % is completely redundant. refactor #437 * style(hslToRgb): Fix typo and remove comment * test(hslToRgb): negative hue test Test hslToRgb's ability to handle negative hues passed in through adjustHue. tests #437 * chore(docs): Prep for 3.3.1 release * build(package.json): Bump version
- Loading branch information
Showing
4 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "polished", | ||
"version": "3.3.0", | ||
"version": "3.3.2", | ||
"description": "A lightweight toolset for writing styles in Javascript.", | ||
"license": "MIT", | ||
"author": "Brian Hough <[email protected]> (https://polished.js.org)", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters