Skip to content

Commit 488e8ba

Browse files
fix(tooltip): use manual line height
Because it is more important that the tooltip respect its height token, and with the prescribed line-height token the tooltip exceeds its prescribed height, the line height gets a manual adjustment here in order to not exceed its height.
1 parent 85fe7bc commit 488e8ba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/tooltip/index.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ governing permissions and limitations under the License.
2525
--spectrum-tooltip-border-radius: var(--spectrum-corner-radius-400);
2626

2727
--spectrum-tooltip-font-size: var(--spectrum-font-size-75);
28-
--spectrum-tooltip-line-height: var(--spectrum-line-height-100);
28+
29+
/* @todo set line-height using font size specific line-height tokens when they are finalized along with the new variable font. */
30+
--spectrum-tooltip-line-height: 1.2;
2931
--spectrum-tooltip-cjk-line-height: var(--spectrum-cjk-line-height-100);
3032
--spectrum-tooltip-font-weight: var(--spectrum-regular-font-weight);
3133

0 commit comments

Comments
 (0)