@cypress-design/vue-icon 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @cypress-design/vue-icon
2
2
 
3
+ ## 0.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c339ddd`](https://github.com/cypress-io/cypress-design/commit/c339dddb8347ceccdb497a0c2a4dfa3b52947114) Thanks [@elevatebart](https://github.com/elevatebart)! - take into account kebab-cased attributes in the icons plugin
8
+
9
+ - Updated dependencies [[`c339ddd`](https://github.com/cypress-io/cypress-design/commit/c339dddb8347ceccdb497a0c2a4dfa3b52947114)]:
10
+ - @cypress-design/icon-registry@0.4.1
11
+
3
12
  ## 0.4.0
4
13
 
5
14
  ### Minor Changes
package/Icon.ts CHANGED
@@ -24,7 +24,7 @@ export const compileVueIconProperties = ({
24
24
  interactiveColorsOnGroup?: boolean
25
25
  }) => {
26
26
  Object.keys(attributes).forEach((key) => {
27
- if (key.endsWith('Color')) {
27
+ if (key.toLowerCase().endsWith('color')) {
28
28
  // @ts-ignore
29
29
  delete attributes[key]
30
30
  }
package/dist/index.es.js CHANGED
@@ -13,7 +13,7 @@ const compileVueIconProperties = ({
13
13
  ...attributes
14
14
  }) => {
15
15
  Object.keys(attributes).forEach((key) => {
16
- if (key.endsWith("Color")) {
16
+ if (key.toLowerCase().endsWith("color")) {
17
17
  delete attributes[key];
18
18
  }
19
19
  });