Skip to content

fix(xychart): set explicit SVG size on Tooltip glyph to prevent browser default 300x150 (#2027) - #2028

Open
aphage wants to merge 1 commit into
airbnb:masterfrom
aphage:fix/tooltip-glyph-svg-size-2027
Open

fix(xychart): set explicit SVG size on Tooltip glyph to prevent browser default 300x150 (#2027)#2028
aphage wants to merge 1 commit into
airbnb:masterfrom
aphage:fix/tooltip-glyph-svg-size-2027

Conversation

@aphage

@aphage aphage commented Jul 30, 2026

Copy link
Copy Markdown

@
fix(xychart): set explicit SVG size on Tooltip glyph to prevent browser default 300x150 (#2027)

The SVG wrapper for tooltip glyphs had no explicit width/height, causing browsers to render it at the default 300px x 150px size. This could push tooltip positioning off. Setting width and height to 0.5rem (8px x 8px) matches the glyph circle size (r=4) while overflow="visible" ensures the content is not clipped.

Co-Authored-By: Claude noreply@anthropic.com
@

馃挜 Breaking Changes

馃殌 Enhancements

馃摑 Documentation

馃悰 Bug Fix

#2027

馃彔 Internal

fix(xychart): set explicit SVG size on Tooltip glyph to prevent browser default 300x150 (airbnb#2027)

The SVG wrapper for tooltip glyphs had no explicit width/height,
causing browsers to render it at the default 300px x 150px size.
This could push tooltip positioning off. Setting width and height
to 0.5rem (8px x 8px) matches the glyph circle size (r=4) while
overflow="visible" ensures the content is not clipped.

Co-Authored-By: Claude <noreply@anthropic.com>
@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant