Skip to content

Conversation

@williamjstanton
Copy link
Collaborator

@williamjstanton williamjstanton commented Nov 15, 2025

Summary

As part of making accessibility a "first class citizen" in Canvas docs, we will be pulling any technical information for developers off of the design site, and into the Canvas repository.

Expandable and Menu are the next set of components.

Release Category

Documentation

Checklist

For the Reviewer

  • PR title is short and descriptive
  • PR summary describes the change (Fixes/Resolves linked correctly)
  • PR Release Notes describes additional information useful to call out in a release message or removed if not applicable
  • Breaking Changes provides useful information to upgrade to this code or removed if not applicable

Where Should the Reviewer Start?

modules/react/expandable/stories/Expandable.mdx
modules/react/menu/stories/Menu.mdx

I also updated the examples using the new Avatar component and the isDecorative prop.

Areas for Feedback? (optional)

  • Code
  • Documentation
  • Testing
  • Codemods

Testing Manually

Screenshots or GIFs (if applicable)

Thank You Gif (optional)

@cypress
Copy link

cypress bot commented Nov 15, 2025

Workday/canvas-kit    Run #9866

Run Properties:  status check passed Passed #9866  •  git commit 4302558f6b ℹ️: Merge 343406ad94a07af6ad049e2036dd48891978296c into 273b5b7c15dc99ca2a27321118c0...
Project Workday/canvas-kit
Branch Review william-docs-expandable-and-menu
Run status status check passed Passed #9866
Run duration 02m 33s
Commit git commit 4302558f6b ℹ️: Merge 343406ad94a07af6ad049e2036dd48891978296c into 273b5b7c15dc99ca2a27321118c0...
Committer William Stanton
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 1
Tests that did not run due to a developer annotating a test with .skip  Pending 86
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 843
View all changes introduced in this branch ↗︎
UI Coverage  19.34%
  Untested elements 1533  
  Tested elements 365  
Accessibility  99.31%
  Failed rules  6 critical   5 serious   0 moderate   2 minor
  Failed elements 77  

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates accessibility documentation for the Expandable and Menu components from the design site into the Canvas repository, making accessibility a "first class citizen" in Canvas docs. The changes include comprehensive accessibility guidelines, keyboard navigation details, and screen reader experiences.

  • Added detailed accessibility sections with WAI-ARIA pattern references for both components
  • Updated Avatar examples to use the isDecorative prop for proper screen reader behavior
  • Enhanced HoistedModel example with semantic HTML and ARIA labeling best practices

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
modules/react/menu/stories/Menu.mdx Added comprehensive accessibility section with navigation, screen reader experience, and contextual accessibility notes throughout examples
modules/react/menu/stories/examples/SelectableMenu.tsx Moved role attribute from Menu.Card to Menu.List and added detailed JSDoc about accessibility limitations
modules/react/expandable/stories/Expandable.mdx Added accessibility section with navigation, screen reader experience, and contextual notes for Avatar decoration and semantic sections
modules/react/expandable/stories/examples/Avatar.tsx Added isDecorative prop to Avatar instances
modules/react/expandable/stories/examples/RTL.tsx Added isDecorative prop to Avatar instances
modules/react/expandable/stories/examples/LongTitle.tsx Added isDecorative prop to Avatar instance
modules/react/expandable/stories/examples/HoistedModel.tsx Enhanced with semantic sections, ARIA labeling, and improved styling approach

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

<Expandable>
<Expandable.Target headingLevel="h4">
<Expandable.Avatar name="Avatar" url={testAvatar} />
<Expandable.Avatar name="Avatar" isDecorative url={testAvatar} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to always define isDecorative on the expandable.avatar?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK! I did it!

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