Skip to content

Commit c730f12

Browse files
fix(tooltip): add inline-size to label
1 parent e78db62 commit c730f12

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

1st-gen/packages/tooltip/src/spectrum-tooltip.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@
9292
font-weight: var(--mod-tooltip-font-weight, var(--spectrum-tooltip-font-weight));
9393
line-height: var(--mod-tooltip-line-height, var(--spectrum-tooltip-line-height));
9494
overflow-wrap: break-word;
95-
hyphens: auto;
9695
-webkit-font-smoothing: antialiased;
9796
cursor: default;
9897
-webkit-user-select: none;
@@ -322,6 +321,9 @@
322321
line-height: var(--mod-tooltip-line-height, var(--spectrum-tooltip-line-height));
323322
margin-block-start: var(--mod-tooltip-spacing-block-start, var(--spectrum-tooltip-spacing-block-start));
324323
margin-block-end: var(--mod-tooltip-spacing-block-end, var(--spectrum-tooltip-spacing-block-end));
324+
325+
/* Allow overflow-wrap to work and prevent text overflow */
326+
inline-size: 100%;
325327
}
326328

327329
#tooltip,

0 commit comments

Comments
 (0)