Update stories - batch 1
Summary
Part of https://github.com/github/primer/issues/3635
List of notable changes:
Updated stories of:
- Accordion
- ActionMenu
- AnchorNav
- Avatar
What should reviewers focus on?
Steps to test:
Supporting resources (related issues, external links, etc):
Contributor checklist:
- [ ] All new and existing CI checks pass
- [ ] Tests prove that the feature works and covers both happy and unhappy paths
- [ ] Any drop in coverage, breaking changes or regressions have been documented above
- [ ] New visual snapshots have been generated / updated for any UI changes
- [ ] All developer debugging and non-functional logging has been removed
- [ ] Related issues have been referenced in the PR description
Reviewer checklist:
- [ ] Check that pull request and proposed changes adhere to our contribution guidelines and code of conduct
- [ ] Check that tests prove the feature works and covers both happy and unhappy paths
- [ ] Check that there aren't other open Pull Requests for the same update/change
Screenshots:
Please try to provide before and after screenshots or videos
| Before | After |
|---|---|
⚠️ No Changeset found
Latest commit: cc14203e9fcae719b0f6f242472ad30f4a0e3676
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
🟢 No design token changes found
⚠️ Visual differences found
Our visual comparison tests found UI differences.
Please review the differences by using the test artifacts to ensure that the changes were intentional.
Artifacts can be downloaded and reviewed locally.
Download links are available at the bottom of the workflow summary screen.
Example:

If the changes are expected, please run npm run test:visual:update-snapshots to replace the previous fixtures.
@rezrah @joshfarrant I could do with a bit of feedback on my approach so far:
Here's what I'm doing:
- Removing controls from default stories
- Adding controls for child components in labelled sections
- Using
textas the control name when it's really justchildren- seems more intuitive thanchildren(esp because you can't write jsx in the control field) but perhaps could cause some confusion as it's not a prop calledtext. Only Tooltip has an actualtextprop, and there are a few existing stories that usetextas a control name in the same way. - Using
visibleas a control to define whether a child component is rendered or not - again that's not the name of an actual prop on the component, just taking the lead from EyebrowBanner - Using 'Story customization' as a section for composed data and external customisation
- Only showing editable controls in playground - excluding implementation details such as id, className, ref, aria labels etc.
Hope that sounds good to you! I'll do these in batches of ~5 components to make them easier to review, but could do a PR per component if that's preferred :)