From 6c8c0e00b56dda8487880210743f551f7a702a44 Mon Sep 17 00:00:00 2001 From: Alessandra Davila Date: Mon, 16 Dec 2019 13:18:33 -0600 Subject: [PATCH 1/2] fix(multiselect): close button for tags --- packages/components/src/components/tag/_tag.scss | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/components/src/components/tag/_tag.scss b/packages/components/src/components/tag/_tag.scss index 453e6e564ce4..29d3cb9a7ae4 100644 --- a/packages/components/src/components/tag/_tag.scss +++ b/packages/components/src/components/tag/_tag.scss @@ -96,16 +96,10 @@ @include tag-theme($inverse-02, $inverse-01); cursor: pointer; - padding-right: calc( - #{$carbon--spacing-06} + #{rem(2px)} - ); // icon width + 2px space from right edge + padding-right: rem(2px); } .#{$prefix}--tag--filter > svg { - position: absolute; - right: rem(2px); - top: 50%; - transform: translateY(-50%); fill: $inverse-01; margin-left: rem(4px); padding: rem(2px); From cd87efbe6a231cea06d740489a467b739ad62fc9 Mon Sep 17 00:00:00 2001 From: Alessandra Davila Date: Mon, 16 Dec 2019 13:30:51 -0600 Subject: [PATCH 2/2] chore: remove relative positioning --- packages/components/src/components/tag/_tag.scss | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/components/src/components/tag/_tag.scss b/packages/components/src/components/tag/_tag.scss index 29d3cb9a7ae4..6ab4b6385dfc 100644 --- a/packages/components/src/components/tag/_tag.scss +++ b/packages/components/src/components/tag/_tag.scss @@ -19,7 +19,6 @@ @include type-style('label-01'); display: inline-flex; - position: relative; align-items: center; padding: 0 $carbon--spacing-03; height: 1.5rem;