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

A11y/main #16

Merged
merged 44 commits into from
Jan 31, 2023
Merged

A11y/main #16

merged 44 commits into from
Jan 31, 2023

Conversation

theericzhang
Copy link
Owner

Changes

  • Added FocusTraps to relevant modals, like <CartSheet /> and <ItemOverlay />, using the Focus Trap React library. 8a026fa ea36f8b ab3aa38 f57e1d5
  • FocusTraps are working with styled-components and CSSTransitions. Complex logic evaluation could be simplified in the future. 079bc53
  • aria-label added to major UI elements. aria-live="polite" added to state change items, like cart item counters. These values re-announce themselves to provide meaningful feedback 57ca18d 5da637b f5c1b9d a13374b 435bb22
  • Semantic HTML element edits 6f5a54d 58f1164 a3b3b56
  • Font optimizations to reduce network payload and removed double font fetch Font optimization/a11y/main #15
  • Created <Shimmer /> component for images. This component receives a width: number prop that helps decide the width of the animation range. Best to use 2x the width of element being shimmered as this number (in pixels) b8d61e4 1b54344 6c39960 511f1ad 04be795

…ocus on it when the component mounts (useEffect) and then assign a tabIndex depending on whether or not the component has mounted or not
…ler did not fire when FocusTrap was on ItemCustomizationPanel.
…CSStransitiongroup to render dynamically since FocusTrap component relies on rendering lifecycles to trap. Or, set focustrap props before animations
…ages now decode in async for the first 3 images in the carousel
@vercel
Copy link

vercel bot commented Jan 31, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
doordash-clone ✅ Ready (Inspect) Visit Preview Jan 31, 2023 at 4:47AM (UTC)

@theericzhang theericzhang merged commit e14a6b3 into main Jan 31, 2023
@theericzhang theericzhang deleted the a11y/main branch January 31, 2023 04:50
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