File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const TOOLTIP_HOST_CLASSES = 'relative inline-flex'
1212const TOOLTIP_TRIGGER_CLASSES =
1313 'inline-flex items-center focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-spotlight'
1414const TOOLTIP_POPUP_CLASSES =
15- 'pointer-events-none absolute left-0 top-full z-(--z-content-floating) mt-2 hidden max-w-64 rounded-md border border-trim bg-page-inverse px-2 py-1 text-sm leading-tight text-page-base shadow-elevated'
15+ 'pointer-events-none absolute left-0 top-full z-(--z-content-floating) mt-2 hidden max-w-64 rounded-md border border-trim bg-page-inverse px-2 py-1 text-sm leading-tight text-page-base shadow-elevated whitespace-nowrap '
1616
1717let tooltipIdCounter = 0
1818let pageLoadListenerAttached = false
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ const shouldRenderWrapper = typeof text === 'string' && text.trim().length > 0
3636 role = " tooltip"
3737 aria-hidden = " true"
3838 class :list = { [
39- ' pointer-events-none absolute left-0 top-full z-(--z-content-floating) mt-2 hidden max-w-64 rounded-md border border-trim bg-page-inverse px-2 py-1 text-sm leading-tight text-page-base shadow-elevated' ,
39+ ' pointer-events-none absolute left-0 top-full z-(--z-content-floating) mt-2 hidden max-w-64 rounded-md border border-trim bg-page-inverse px-2 py-1 text-sm leading-tight text-page-base shadow-elevated whitespace-nowrap ' ,
4040 tooltipClass ,
4141 ]}
4242 >
Original file line number Diff line number Diff line change 9999 color : var (--color-secondary );
100100 }
101101
102+ /** Tooltip-backed markdown abbreviations keep their dotted underline affordance. */
103+ abbr [data-tooltip ] {
104+ text-decoration-line : underline;
105+ text-decoration-style : dotted;
106+ text-underline-offset : 4px ;
107+ }
108+
102109 /** Ensure proper font weight for bold elements */
103110 b ,
104111 strong {
You can’t perform that action at this time.
0 commit comments