diff --git a/.github/tip5-dragfeature.gif b/.github/tip5-dragfeature.gif new file mode 100644 index 0000000..86cc2db Binary files /dev/null and b/.github/tip5-dragfeature.gif differ diff --git a/README.md b/README.md index a3024ee..169bf31 100644 --- a/README.md +++ b/README.md @@ -200,7 +200,9 @@ This plugin bundles two classes, one for JavaScript and one for PHP, with the id 1. Click on the left color preview to open the color picker. 2. Click the arrow icon to switch between color spaces. 3. When editing RGB or HSL colors, use the up and down arrow keys to adjust the value by +1 or -1. -4. Hold the [meta key](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/metaKey) to adjust values by +10 or -10. +4. Hold the [meta key](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/metaKey) (or the shift key) to adjust values by +10 or -10. +5. Click on the grey unit indicator of a value then drag the mouse vertically to adjust the values on the fly. + ![Drag-to-increment feature](./.github/tip5-dragfeature.gif) ## Alternatives diff --git a/src/components/Colors.vue b/src/components/Colors.vue index 5f8aac2..8c2d918 100644 --- a/src/components/Colors.vue +++ b/src/components/Colors.vue @@ -56,7 +56,7 @@ export default { props: { name: [String, Number], label: String, - value: Array, + value: String, contrast: [Boolean, Array], readability: Boolean, alpha: Boolean, diff --git a/src/components/ColorsInput.vue b/src/components/ColorsInput.vue index ddc76cc..60d71d6 100644 --- a/src/components/ColorsInput.vue +++ b/src/components/ColorsInput.vue @@ -2,7 +2,7 @@