@cocreate/random-color
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -0,1 +1,8 @@ | ||
## [1.1.3](https://github.com/CoCreate-app/CoCreate-random-color/compare/v1.1.2...v1.1.3) (2021-08-14) | ||
### Bug Fixes | ||
* update to docs ([e092c0a](https://github.com/CoCreate-app/CoCreate-random-color/commit/e092c0a9ae04247af4081293a130648280ec1883)) | ||
## [1.1.2](https://github.com/CoCreate-app/CoCreate-random-color/compare/v1.1.1...v1.1.2) (2021-08-02) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@cocreate/random-color", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "A simple HTML5 and pure javascript component. Easy configuration using data-attributes and/or JavaScript API. Highly customizable and styleable.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -7,4 +7,4 @@ let defaultSaturation = 75; | ||
function updateRandomColor(){ | ||
let avatars = document.querySelectorAll("[data-background_color='random']"); | ||
for(let el of avatars){ | ||
let elements = document.querySelectorAll("[background-color='random']"); | ||
for(let el of elements){ | ||
el.style.backgroundColor = randomHSLColor(); | ||
@@ -11,0 +11,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31357
186