Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Commit

Permalink
fix(tooltip): Fix tooltip display for small elements. Close #150
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielhl committed Mar 21, 2016
1 parent c0fd732 commit c6d19c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/demo/materials/03-molecules/06-tooltip.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

<br><br>
<h4 class="dc-h4">HAS TOOLTIP</h4>
<button class="dc-btn dc-has-tooltip" data-dc-has-tooltip="Hi. I'm a tooltip.">This button has a tooltip</button>
<button class="dc-btn dc-has-tooltip" data-dc-has-tooltip="Hi. I'm a tooltip.">Has tooltip</button>
3 changes: 2 additions & 1 deletion src/styles/molecules/_tooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
display: block;
position: absolute;
bottom: calc(100% + 12px);
left: 0;
content: attr(#{$content-attribute});
white-space: nowrap;
}

@mixin dc-tooltip__triangle--lb-has-tooltip {
Expand Down Expand Up @@ -110,4 +112,3 @@
@include dc-has-tooltip;
}
}

0 comments on commit c6d19c3

Please sign in to comment.