You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you hover the mouse over an exported function's header, the "view code" button causes everything below the header to shift down several pixels. When scrolling through and exploring docs, this shift can cause you to lose your place on the page and get confused.
Screen.Recording.2024-12-11.at.11.06.55.AM.mov
Specifically, it appears the button goes from 26px tall to 28px tall because the ::before containing the "View Code" text is 16px tall, while the svg is 14px tall.
To fix, couple of options:
Remove line-height: 1rem from body .ddoc { & .symbolGroup article > div:hover > div + a.context_button::before
Change line-height: 1rem to line-height: 0.75rem (to match the font size)
Screen.Recording.2024-12-11.at.11.21.40.AM.mov
Both seem to work fine for mobile and desktop, but I'll open a PR implementing option 2 to align the line-height and font-size, common for centering text vertically.
The text was updated successfully, but these errors were encountered:
When you hover the mouse over an exported function's header, the "view code" button causes everything below the header to shift down several pixels. When scrolling through and exploring docs, this shift can cause you to lose your place on the page and get confused.
Screen.Recording.2024-12-11.at.11.06.55.AM.mov
Specifically, it appears the button goes from 26px tall to 28px tall because the
::before
containing the "View Code" text is 16px tall, while thesvg
is 14px tall.To fix, couple of options:
line-height: 1rem
frombody .ddoc { & .symbolGroup article > div:hover > div + a.context_button::before
line-height: 1rem
toline-height: 0.75rem
(to match the font size)Screen.Recording.2024-12-11.at.11.21.40.AM.mov
Both seem to work fine for mobile and desktop, but I'll open a PR implementing option 2 to align the line-height and font-size, common for centering text vertically.
The text was updated successfully, but these errors were encountered: