From f31bef6750e701e1972ca26d33a0335243f44f93 Mon Sep 17 00:00:00 2001 From: emyarod Date: Wed, 11 Mar 2020 12:31:03 -0500 Subject: [PATCH] fix(code-snippet): set correct width for feedback container in Safari --- .../components/src/components/code-snippet/_code-snippet.scss | 2 ++ .../components/src/components/copy-button/_copy-button.scss | 2 ++ 2 files changed, 4 insertions(+) diff --git a/packages/components/src/components/code-snippet/_code-snippet.scss b/packages/components/src/components/code-snippet/_code-snippet.scss index 2a065653107e..8988875848b3 100644 --- a/packages/components/src/components/code-snippet/_code-snippet.scss +++ b/packages/components/src/components/code-snippet/_code-snippet.scss @@ -59,12 +59,14 @@ } .#{$prefix}--copy-btn__feedback { + box-sizing: content-box; @include tooltip--content('icon'); clip: auto; margin: auto; overflow: visible; display: none; } + @include tooltip--placement('icon', 'bottom', 'center'); } diff --git a/packages/components/src/components/copy-button/_copy-button.scss b/packages/components/src/components/copy-button/_copy-button.scss index e8254f0fadfe..4ed9938ae780 100644 --- a/packages/components/src/components/copy-button/_copy-button.scss +++ b/packages/components/src/components/copy-button/_copy-button.scss @@ -97,12 +97,14 @@ } .#{$prefix}--copy-btn__feedback { + box-sizing: content-box; @include tooltip--content('icon'); clip: auto; margin: auto; overflow: visible; display: none; } + @include tooltip--placement('icon', 'bottom', 'center'); &:focus {