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

fix: devtools warnings about dev toolbar form fields #12590

Merged
merged 3 commits into from
Dec 3, 2024

Conversation

kidonng
Copy link
Contributor

@kidonng kidonng commented Dec 3, 2024

Changes

This is some super niche change but I think it would be useful.

Chrome DevTools has a Issues tab which detects "A form field element should have an id or name attribute" in Astro's dev toolbar. This pull request adds appropriate name attributes to fix the warnings.

While the warnings do not matter for the dev toolbar itself, it may cause potential confusion and makes it difficult to identify issues in actual pages at a glance.

CleanShot 2024-12-03 at 17 27 48@2x
CleanShot 2024-12-03 at 17 31 33@2x

Testing

Docs

Copy link

changeset-bot bot commented Dec 3, 2024

🦋 Changeset detected

Latest commit: cf45a5b

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 the pkg: astro Related to the core `astro` package (scope) label Dec 3, 2024
Copy link

codspeed-hq bot commented Dec 3, 2024

CodSpeed Performance Report

Merging #12590 will degrade performances by 32.89%

Comparing kidonng:fix/devtools-form-issues (faae453) with main (b731b3d)

Summary

⚡ 2 improvements
❌ 1 regressions
✅ 3 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark main kidonng:fix/devtools-form-issues Change
Rendering: streaming [false], .astro file 1.9 s 1.5 s +26.18%
Rendering: streaming [false], .md file 15 ms 22.3 ms -32.89%
Rendering: streaming [false], .mdx file 1.3 s 1 s +27.03%

Copy link
Member

@Princesseuh Princesseuh left a comment

Choose a reason for hiding this comment

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

Looks great, thank you! No fix is too niche 💪

@Princesseuh Princesseuh merged commit 92c269b into withastro:main Dec 3, 2024
5 checks passed
@astrobot-houston astrobot-houston mentioned this pull request Dec 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)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants