Skip to content

Commit

Permalink
fix(tooltip): use manual line height
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rise-erpelding committed Jul 9, 2024
1 parent 85fe7bc commit 488e8ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/tooltip/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ governing permissions and limitations under the License.
--spectrum-tooltip-border-radius: var(--spectrum-corner-radius-400);

--spectrum-tooltip-font-size: var(--spectrum-font-size-75);
--spectrum-tooltip-line-height: var(--spectrum-line-height-100);

/* @todo set line-height using font size specific line-height tokens when they are finalized along with the new variable font. */
--spectrum-tooltip-line-height: 1.2;
--spectrum-tooltip-cjk-line-height: var(--spectrum-cjk-line-height-100);
--spectrum-tooltip-font-weight: var(--spectrum-regular-font-weight);

Expand Down

0 comments on commit 488e8ba

Please sign in to comment.