Skip to content

Commit

Permalink
fix(copy-button): fix type of feedback text (#4677)
Browse files Browse the repository at this point in the history
Fixes #4606.
  • Loading branch information
asudoh committed Nov 19, 2019
1 parent fd1b01d commit 980b550
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@

.#{$prefix}--btn--copy__feedback {
@include type-style('body-short-01');
@include carbon--font-family('sans'); // Override one in code snippet
z-index: z('overlay');
font-weight: 400;
left: inherit;
Expand Down Expand Up @@ -302,9 +303,27 @@
}

.#{$prefix}--snippet-button .#{$prefix}--btn--copy__feedback {
top: rem(25px);
top: rem(
50.8px
); // (The height of button) + (The height of the tooltip's triangle) + 4px
left: 50%;
right: auto;

&::before {
top: 0;
}

&:after {
top: rem(-4px);
}
}

.#{$prefix}--snippet--multi
.#{$prefix}--snippet-button
.#{$prefix}--btn--copy__feedback {
top: rem(
42.8px
); // (The height of button) + (The height of the tooltip's triangle) + 4px
}

.#{$prefix}--snippet--inline .#{$prefix}--btn--copy__feedback {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

&:before {
@include layer('overlay');
@include type-style('label-01');
@include type-style('body-short-01');
top: 1.1rem;
padding: $spacing-2xs;
color: $inverse-01;
Expand Down

0 comments on commit 980b550

Please sign in to comment.