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

feat(Sheet): allow closing the sheet with the keyboard or a screen reader #1293

Merged
merged 4 commits into from
Nov 22, 2024

Conversation

marcoskolodny
Copy link
Contributor

@marcoskolodny marcoskolodny commented Nov 13, 2024

Issue: Link

Note

In this PR I'm also fixing a wrong usage in the Sheet's story. It was using a ResponsiveLayout instead of SheetBody, and therefore causing issues with horizontal padding in large devices (https://jira.tid.es/browse/WEB-2101)

Copy link

Size stats

master this branch diff
Total JS 12.2 MB 12.2 MB +681 B
JS without icons 1.96 MB 1.96 MB +681 B
Lib overhead 68.7 kB 68.7 kB 0 B
Lib overhead (gzip) 16.7 kB 16.7 kB 0 B

Copy link

github-actions bot commented Nov 13, 2024

Accessibility report
✔️ No issues found

ℹ️ You can run this locally by executing yarn audit-accessibility.

Copy link

github-actions bot commented Nov 13, 2024

Deploy preview for mistica-web ready!

✅ Preview
https://mistica-4koumbgsd-flows-projects-65bb050e.vercel.app

Built with commit 4a15139.
This pull request is being automatically deployed with vercel-action

@marcoskolodny marcoskolodny marked this pull request as ready for review November 14, 2024 11:21
<Placeholder />
</Box>
</ResponsiveLayout>
{({modalTitleId}) => (
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This fixes the issue with the wrong paddings in the sheet's story: https://jira.tid.es/browse/WEB-2101

/>

{({ modalTitleId }) => (
<SheetBody modalTitleId={modalTitleId}>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixing wrong usages in snippets too, they should be using SheetBody instead of ResponsiveLayout

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unrelated. Yayo asked me to update the buton's size in the callout

@marcoskolodny marcoskolodny added this pull request to the merge queue Nov 22, 2024
Merged via the queue into master with commit 42099fb Nov 22, 2024
11 checks passed
@marcoskolodny marcoskolodny deleted the WEB-2083-sheet-close-button-a11y branch November 22, 2024 14:46
tuentisre pushed a commit that referenced this pull request Nov 26, 2024
# [16.6.0](v16.5.0...v16.6.0) (2024-11-26)

### Features

* **data-testid:** support for Callout, HighlightedCard, Hero, EmptyState and Headers ([#1296](#1296)) ([15b798c](15b798c))
* **Header, Cards, Hero, CoverHero:** improve a11y ([#1292](#1292)) ([cdcf2fc](cdcf2fc))
* **InfoSheet:** update styles and allow adding a button to the content ([#1294](#1294)) ([c4a0749](c4a0749))
* **Meter:** New component ([#1281](#1281)) ([1a061d8](1a061d8))
* **Sheet:** allow closing the sheet with the keyboard or a screen reader ([#1293](#1293)) ([42099fb](42099fb))
@tuentisre
Copy link
Collaborator

🎉 This PR is included in version 16.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants