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

Add AccessibilityLater button story with a button #3917

Merged
merged 2 commits into from Oct 30, 2023

Conversation

PavelVanecek
Copy link
Collaborator

This case is already present in a spec.tsx file but I also want it in a storybook to better understand why my changes in the PoC branch broke the accessibilityLater

Description

Added storybook example

Related Issue

Motivation and Context

How Has This Been Tested?

npm run storybook

Screenshots (if appropriate):

image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • I have added a storybook story or extended an existing story to show my changes
  • All new and existing tests passed.

This case is already present in a spec.tsx file but I also want it in a storybook to better understand why my changes in the PoC branch broke the accessibilityLater
Copy link
Contributor

@nikolasrieble nikolasrieble left a comment

Choose a reason for hiding this comment

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

In how far is this story related to Accessibility? The button which seems to related to the AccessibilityLayer (from the name and location of the story) only toggle the Tooltip. Is that intended?

…ories.tsx

Co-authored-by: Nikolas Rieble <nikolas-rieble@protonmail.com>
@PavelVanecek
Copy link
Collaborator Author

It's a reproduction case to make sure that if a tooltip is created via accessibility later (i.e. keyboard events instead of a mouse) and then removed from DOM, it will actually disappear from the SVG as well.

It just so happens that my PoC branch broke this test too so I want to have a story to be able to debug.

@ckifer
Copy link
Member

ckifer commented Oct 30, 2023

Doesn't hurt anything to add this so going to go for it

@ckifer ckifer merged commit 31d152d into recharts:master Oct 30, 2023
5 checks passed
GMer78 pushed a commit to GMer78/recharts-1 that referenced this pull request Nov 24, 2023
This case is already present in a spec.tsx file but I also want it in a
storybook to better understand why my changes in the PoC branch broke
the accessibilityLater

## Description

Added storybook example

## Related Issue


## Motivation and Context

## How Has This Been Tested?

`npm run storybook`

## Screenshots (if appropriate):
<img width="953" alt="image"
src="https://github.com/recharts/recharts/assets/1100170/4571a95c-fc8e-4b1b-af50-eca6efb2a375">

## Types of changes

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)

## Checklist:

- [X] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] I have added tests to cover my changes.
- [X] I have added a storybook story or extended an existing story to
show my changes
- [X] All new and existing tests passed.

---------

Co-authored-by: Nikolas Rieble <nikolas-rieble@protonmail.com>
@PavelVanecek PavelVanecek deleted the accessibilitylayer-story branch January 2, 2024 11:28
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.

None yet

3 participants