From 78012c6c1f0105875d529d958a8afabdf3c7e34f Mon Sep 17 00:00:00 2001 From: TJ Egan Date: Fri, 31 Jul 2020 12:49:54 -0700 Subject: [PATCH] fix(Copy): set font-size after reset (#6585) Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- .../src/components/copy-button/_copy-button.scss | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/components/src/components/copy-button/_copy-button.scss b/packages/components/src/components/copy-button/_copy-button.scss index 09b7ec313cc0..8e243417cd86 100644 --- a/packages/components/src/components/copy-button/_copy-button.scss +++ b/packages/components/src/components/copy-button/_copy-button.scss @@ -75,9 +75,6 @@ } // TODO: deprecate above styles - .#{$prefix}--copy { - font-size: 0; - } .#{$prefix}--copy-btn { @include reset; @@ -139,4 +136,9 @@ animation: $duration--fast-02 motion(standard, productive) show-feedback; } } + + // Needs to come after reset so hidden text is not set to font-size: 100% + .#{$prefix}--copy { + font-size: 0; + } }