Skip to content

Commit

Permalink
style(tooltip): set z-index in mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan committed Mar 24, 2021
1 parent ea4b91d commit a7e39b1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@
.#{$prefix}--copy-btn__feedback {
@include tooltip--content('icon');

z-index: z('floating');
display: none;
box-sizing: content-box;
margin: auto;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@
.#{$prefix}--copy-btn__feedback {
@include tooltip--content('icon');

z-index: z('floating');
display: none;
box-sizing: content-box;
margin: auto;
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/globals/scss/_tooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a7e39b1

Please sign in to comment.