Skip to content

Commit 6a77d3f

Browse files
emyarodshixiedesign
authored andcommitted
fix(tooltip): wrap icon tooltip content (#2783)
* fix(tooltip): wrap icon tooltip content * fix(tooltip): left align tooltip content
1 parent 8a20ff2 commit 6a77d3f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/components/src/components/tooltip/tooltip--icon.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!--
1+
<!--
22
Copyright IBM Corp. 2016, 2018
33
44
This source code is licensed under the Apache-2.0 license found in the

packages/components/src/globals/scss/_tooltip.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@
4949
@include layer('overlay');
5050
min-width: rem(24px);
5151
max-width: rem(208px);
52-
height: rem(24px);
52+
height: auto;
5353
margin-left: 50%;
54-
padding: 0 1rem;
54+
padding: 0.125rem 1rem;
5555
border-radius: rem(2px);
5656
color: $inverse-01;
5757
font-weight: 400;
5858
content: attr(aria-label);
59+
text-align: left;
5960
transform: translateX(-50%);
60-
white-space: nowrap;
6161
pointer-events: none;
6262
background-color: $inverse-02;
6363
}

0 commit comments

Comments
 (0)