docs(sidebar): improve readability and contrast at 910px
This PR improves the readability and visual hierarchy of the documentation sidebar for medium-width viewports (~768px to 991px). It addresses specifically reported issues regarding small font sizes, cramped spacing, and low text contrast at approximately 910px.
Changes Typography: Increased the base font size for menu items to 14px and sub-menu items to 13px to improve legibility on dark backgrounds.
Spacing: Adjusted line-height to 1.6 and increased vertical padding to 0.9em to reduce visual density and improve the interactive "hit area" for navigation links.
Visual Hierarchy: Enhanced section headers (e.g., "Elements", "Collections") by increasing font size to 1.1em and setting color to pure white (#fff).
Accessibility: Increased the text contrast of nested menu items to rgba(255, 255, 255, 0.8) to ensure compliance with WCAG AA standards for text on dark backgrounds.
Responsive Design: Implemented these changes via a targeted @media query in docs/src/Style.js to ensure the layout remains balanced as the viewport scales.
Environment Version: 3.0.0-beta.2
Tested on: Chrome 130 (Windows 11) at ~910px
@shhreya13 is attempting to deploy a commit to the Semantic UI Team on Vercel.
A member of the Team first needs to authorize it.
Codecov Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 99.53%. Comparing base (e0a42b5) to head (676d28c).
Additional details and impacted files
@@ Coverage Diff @@
## master #4534 +/- ##
=======================================
Coverage 99.53% 99.53%
=======================================
Files 186 186
Lines 3463 3463
=======================================
Hits 3447 3447
Misses 16 16
:umbrella: View full report in Codecov by Harness.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.