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

Addon-A11y: Fix manual run & timeline #12003

Merged
merged 2 commits into from
Aug 18, 2020
Merged

Addon-A11y: Fix manual run & timeline #12003

merged 2 commits into from
Aug 18, 2020

Conversation

tooppaaa
Copy link
Contributor

Issue: #11802

What I did

  • Fix manual parameter of a11y addon
  • Make sure axe results are synced with the current story
  • Run axe core again on the new requested story

How to test

  • Check Manual story on official-storybook
  • navigate through stories using shortcuts

const { manual } = useParameter<Pick<A11yParameters, 'manual'>>('a11y', {
manual: false,
});
const [status, setStatus] = useState<Status>(manual ? 'manual' : 'initial');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using useAddonState on this didn't worked

  • useEffect doesn't update 'right' addon state
  • adding it to dependencies of useEffect overflows

@shilman
Copy link
Member

shilman commented Aug 14, 2020

cc @tmeasday

Copy link
Member

@tmeasday tmeasday left a comment

Choose a reason for hiding this comment

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

LGTM although I don't really know this code well. Should @ndelangen take a look?

@shilman shilman requested a review from ndelangen August 18, 2020 08:35
@shilman shilman changed the title Addon-A11y: fix manual run & timeline Addon-A11y: Fix manual run & timeline Aug 18, 2020
@shilman shilman merged commit 698ec24 into next Aug 18, 2020
@stof stof deleted the fix/a11yManualRun branch May 25, 2022 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants