Skip to content

Conversation

keithamus
Copy link
Contributor

Closes #4387

Changelog

New

Changed

ActionBar is now role=toolbar, and produces valid HTML.

Removed

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; if selected, include a brief description as to why

Testing & Reviewing

Merge checklist

@keithamus keithamus marked this pull request as ready for review March 13, 2024 18:16
@keithamus keithamus requested a review from a team as a code owner March 13, 2024 18:16
@keithamus keithamus requested a review from jonrohan March 13, 2024 18:16
Copy link

changeset-bot bot commented Mar 13, 2024

🦋 Changeset detected

Latest commit: 8bdbb17

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Mar 14, 2024

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 87.51 KB (0%)
packages/react/dist/browser.umd.js 87.74 KB (0%)

@github-actions github-actions bot temporarily deployed to storybook-preview-4388 March 14, 2024 10:19 Inactive
<ActionBarContext.Provider value={{size, setChildrenWidth}}>
<Box ref={navRef} sx={getNavStyles()}>
<NavigationList sx={ulStyles} ref={listRef} role="list">
<NavigationList sx={listStyles} ref={listRef} role="toolbar">
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice, toolbar makes total sense here. I tested the arrow focusing and it looks fine to me 👍

Comment on lines +30 to +34
it('should have no axe violations', async () => {
const {container} = HTMLRender(<SimpleActionBar />)
const results = await axe(container)
expect(results).toHaveNoViolations()
})
Copy link
Member

Choose a reason for hiding this comment

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

Just wanted to share that axe is also available in the e2e tests but with the additional github rules if that's of interest! Wasn't sure how obvious it was.

@keithamus keithamus added this pull request to the merge queue Mar 18, 2024
@joshblack joshblack removed this pull request from the merge queue due to a manual request Mar 18, 2024
@keithamus keithamus added this pull request to the merge queue Mar 19, 2024
Merged via the queue into main with commit c4a4674 Mar 19, 2024
@keithamus keithamus deleted the get-actionbar-axe-clean branch March 19, 2024 12:16
@primer primer bot mentioned this pull request Mar 19, 2024
lukasoppermann pushed a commit that referenced this pull request Apr 16, 2024
* get ActionBar axe clean

* changeset

* fix type

* fix type
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.

Get ActionBar axe clean
4 participants