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 reverted aria audit rules for dev toolbar #9377

Merged
merged 8 commits into from
Jan 3, 2024
Merged

Add reverted aria audit rules for dev toolbar #9377

merged 8 commits into from
Jan 3, 2024

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Dec 8, 2023

Changes

Un-revert #9295 and #9293

The main change is adding optimizeDeps.include: ['astro > aria-query', 'astro > axobject-query'] to fix it.

Testing

Tested manually with pnpm link, and pnpm pack + install locally (to emulate when it's published)

Docs

It doesn't seem like we document the audit rules today.

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Dec 8, 2023
Copy link

changeset-bot bot commented Dec 8, 2023

🦋 Changeset detected

Latest commit: c843b04

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

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

@github-actions github-actions bot added pr: docs A PR that includes documentation for review semver: minor Change triggers a `minor` release labels Dec 8, 2023
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This PR is blocked because it contains a minor changeset. A reviewer will merge this at the next release if approved.

Copy link
Contributor

github-actions bot commented Dec 8, 2023

⚖️ Bundle Size Check

Latest commit: c843b04

File Old Size New Size Change
dev-overlay/plugins/audit/a11y 11.21 KB 158 KB + 146.8 KB

Copy link
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

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

Looks good. I would update the variable names, and use camel case, since that's what we use in the code base

@@ -489,3 +563,81 @@ const a11y_non_interactive_element_to_interactive_role_exceptions = {
td: ['gridcell'],
fieldset: ['radiogroup', 'presentation'],
};

const combobox_if_list = ['email', 'search', 'tel', 'text', 'url'];
Copy link
Member

Choose a reason for hiding this comment

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

Can we change snake case names to camel case?

Copy link
Member Author

Choose a reason for hiding this comment

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

I can change them to camelCase. It was snake_case as it's borrowed from Svelte and that's the convention they use.

Copy link
Member Author

Choose a reason for hiding this comment

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

Seems like there's a lot that uses snake_case. I think maybe we should do one PR later to convert them all at once.

@Princesseuh Princesseuh added this to the 4.1.0 milestone Jan 2, 2024
Copy link
Member

@sarah11918 sarah11918 left a comment

Choose a reason for hiding this comment

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

Docs is happy! 🥳

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This PR is blocked because it contains a minor changeset. A reviewer will merge this at the next release if approved.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This PR is blocked because it contains a minor changeset. A reviewer will merge this at the next release if approved.

@ematipico ematipico merged commit fe719e2 into main Jan 3, 2024
14 checks passed
@ematipico ematipico deleted the aria-audit branch January 3, 2024 13:34
@astrobot-houston astrobot-houston mentioned this pull request Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope) pr: docs A PR that includes documentation for review semver: minor Change triggers a `minor` release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants