Skip to content

Commit

Permalink
fix(tooltip): set trigger button margin only when descendent of label (
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod authored and asudoh committed Nov 14, 2019
1 parent 8f48ec5 commit 1a2d21b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/components/src/components/tooltip/_tooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -333,15 +333,17 @@
cursor: pointer;
font-size: 1rem;

// Override `margin: 0` from button-reset mixin:
margin-left: $carbon--spacing-03;

&:focus {
@include focus-outline('border');
fill: $hover-primary;
}
}

.#{$prefix}--tooltip__label .#{$prefix}--tooltip__trigger {
// Override `margin: 0` from button-reset mixin
margin-left: $carbon--spacing-03;
}

.#{$prefix}--tooltip__label--bold {
font-weight: 600;
}
Expand Down

0 comments on commit 1a2d21b

Please sign in to comment.