Provide users with a built-in control to increase or decrease text size
Expose a text size control in settings and optionally in the header/utility bar. Use clear labels (A-, A, A+) and tooltips for screen readers.
Keep it reachable via keyboard.
Allow at least three steps: 90% (small), 100% (default), 115–125% (large)
Store the chosen size in localStorage/profile; apply on initial render to avoid flashes.
Sync across tabs where possible.
Accessibility & Semantics
Control is a button group or slider with proper aria-labels and aria-valuetext.
Ensure line-height scales with font size. Do not clip text; allow reflow without horizontal scrolling.
Frequently asked questions
What considerations should be made for performance when implementing a text size adjustment feature?
Performance & Implementation
How should I implement the text size control using CSS custom properties?
Implement via CSS custom properties on root (e.g., --font-scale). Avoid recalculating layout-heavy elements excessively; debounce if needed.
Should I test the text size adjustment across different breakpoints, dark/light modes, and major pages?
Check across breakpoints, dark/light modes, and major pages. Verify headings, buttons, chips, tables, and charts remain readable. Test with screen readers and keyboard navigation.
© 2024 AI Usage by Countries. Text size adjustment option.
© 2024 AI Usage by Countries. Text size adjustment option.
▶ Try it live
Everything above runs in your browser — open Hash Function Avalanche Visualizer and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.