From 0f43c3af0f2259c605d379e031720763a604a02f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albert=20Juh=C3=A9=20Lluveras?= Date: Fri, 10 Jul 2020 20:20:57 +0200 Subject: [PATCH] Remove classes from dashicons (https://github.com/woocommerce/woocommerce-blocks/pull/2848) --- .../assets/js/base/components/chip/removable-chip.js | 6 +++++- .../assets/js/base/components/chip/style.scss | 6 +++--- .../components/chip/test/__snapshots__/index.js.snap | 12 ++++++------ .../js/base/components/dropdown-selector/style.scss | 2 +- .../assets/js/icons/library/arrow-down-alt2.js | 8 +------- .../assets/js/icons/library/no-alt.js | 8 +------- 6 files changed, 17 insertions(+), 25 deletions(-) diff --git a/plugins/woocommerce-blocks/assets/js/base/components/chip/removable-chip.js b/plugins/woocommerce-blocks/assets/js/base/components/chip/removable-chip.js index 33eaec93d0b..ce1f9766445 100644 --- a/plugins/woocommerce-blocks/assets/js/base/components/chip/removable-chip.js +++ b/plugins/woocommerce-blocks/assets/js/base/components/chip/removable-chip.js @@ -72,7 +72,11 @@ const RemovableChip = ( { className="wc-block-components-chip__remove" { ...removeProps } > - + ); diff --git a/plugins/woocommerce-blocks/assets/js/base/components/chip/style.scss b/plugins/woocommerce-blocks/assets/js/base/components/chip/style.scss index e4d1881092d..729e81e1db2 100644 --- a/plugins/woocommerce-blocks/assets/js/base/components/chip/style.scss +++ b/plugins/woocommerce-blocks/assets/js/base/components/chip/style.scss @@ -44,10 +44,10 @@ border: 0; appearance: none; padding: 0; + } - > .dashicon { - vertical-align: middle; - } + .wc-block-components-chip__remove-icon { + vertical-align: middle; } } diff --git a/plugins/woocommerce-blocks/assets/js/base/components/chip/test/__snapshots__/index.js.snap b/plugins/woocommerce-blocks/assets/js/base/components/chip/test/__snapshots__/index.js.snap index 2a1097e6313..d7f89a5c353 100644 --- a/plugins/woocommerce-blocks/assets/js/base/components/chip/test/__snapshots__/index.js.snap +++ b/plugins/woocommerce-blocks/assets/js/base/components/chip/test/__snapshots__/index.js.snap @@ -107,7 +107,7 @@ exports[`RemovableChip should render custom aria label 1`] = ` >