From a7e39b1a1d3c5a7d72721e697a8c27eeb2d7700d Mon Sep 17 00:00:00 2001 From: TJ Egan Date: Tue, 23 Mar 2021 12:45:38 -0700 Subject: [PATCH] style(tooltip): set z-index in mixin --- .../components/src/components/code-snippet/_code-snippet.scss | 1 - packages/components/src/components/copy-button/_copy-button.scss | 1 - packages/components/src/globals/scss/_tooltip.scss | 1 + 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/components/src/components/code-snippet/_code-snippet.scss b/packages/components/src/components/code-snippet/_code-snippet.scss index ca43c6f74041..4b749e0dacdd 100644 --- a/packages/components/src/components/code-snippet/_code-snippet.scss +++ b/packages/components/src/components/code-snippet/_code-snippet.scss @@ -88,7 +88,6 @@ .#{$prefix}--copy-btn__feedback { @include tooltip--content('icon'); - z-index: z('floating'); display: none; box-sizing: content-box; margin: auto; diff --git a/packages/components/src/components/copy-button/_copy-button.scss b/packages/components/src/components/copy-button/_copy-button.scss index ed1fa5888c34..8c113acf3577 100644 --- a/packages/components/src/components/copy-button/_copy-button.scss +++ b/packages/components/src/components/copy-button/_copy-button.scss @@ -107,7 +107,6 @@ .#{$prefix}--copy-btn__feedback { @include tooltip--content('icon'); - z-index: z('floating'); display: none; box-sizing: content-box; margin: auto; diff --git a/packages/components/src/globals/scss/_tooltip.scss b/packages/components/src/globals/scss/_tooltip.scss index 4dabb826b393..873b4af2a077 100644 --- a/packages/components/src/globals/scss/_tooltip.scss +++ b/packages/components/src/globals/scss/_tooltip.scss @@ -31,6 +31,7 @@ @mixin tooltip--content($tooltip-type: 'icon') { @include box-shadow; + z-index: z('floating'); width: max-content; min-width: rem(24px); max-width: rem(208px);