Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scrollbar to math #5380

Merged
merged 5 commits into from
Nov 15, 2024
Merged

Add scrollbar to math #5380

merged 5 commits into from
Nov 15, 2024

Conversation

compulim
Copy link
Contributor

@compulim compulim commented Nov 14, 2024

Changelog Entry

Fixed

  • Fixed long math formula should be scrollable, in PR #5380, by @compulim

Description

Adding scrollbar to very long math formula.

image

Design

Scrollbar in Fluent UI and Copilot variant themes is custom-styled. In white-label UX, we are using scrollbar-width: thin.

Browser quirks

image

When the math formula is very long, browser may calculate the <math> size wrongly and pushed it a bit left and clipped it on overflow-x: auto.

Specific Changes

  • Updated Theme.module.css to include Math <figure> for thin scrollbar style
  • I have added tests and executed them locally
  • I have updated CHANGELOG.md
  • I have updated documentation

Review Checklist

This section is for contributors to review your work.

  • Accessibility reviewed (tab order, content readability, alt text, color contrast)
  • Browser and platform compatibilities reviewed
  • CSS styles reviewed (minimal rules, no z-index)
  • Documents reviewed (docs, samples, live demo)
  • Internationalization reviewed (strings, unit formatting)
  • package.json and package-lock.json reviewed
  • Security reviewed (no data URIs, check for nonce leak)
  • Tests reviewed (coverage, legitimacy)

@compulim compulim marked this pull request as ready for review November 14, 2024 23:28
@OEvgeny
Copy link
Collaborator

OEvgeny commented Nov 14, 2024

As we have now formulas scrollable, shouldn't they be focusable / scrollable via keyboard?

@compulim
Copy link
Contributor Author

As we have now formulas scrollable, shouldn't they be focusable / scrollable via keyboard?

Right... it's not caught by axe-core.

@compulim compulim merged commit e88f4b6 into microsoft:main Nov 15, 2024
25 checks passed
@compulim compulim deleted the feat-scroll-math branch November 15, 2024 02:48
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.

2 participants