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

Fixes attribute rendering for popover #13037

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

nanarino
Copy link

Changes

  • Added popover to the list of boolean attributes

see: #11342 (comment)

Testing

Docs

@github-actions github-actions bot added pkg: astro Related to the core `astro` package (scope) semver: major Change triggers a `major` release labels Jan 21, 2025
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 major changeset. A reviewer will merge this at the next release if approved.

Copy link

codspeed-hq bot commented Jan 21, 2025

CodSpeed Performance Report

Merging #13037 will not alter performance

Comparing nanarino:main (5260983) with main (f576519)

Summary

✅ 6 untouched benchmarks

Copy link

changeset-bot bot commented Jan 21, 2025

🦋 Changeset detected

Latest commit: 5260983

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

@nanarino
Copy link
Author

I feel that my modification results in inconsistent behavior with other boolean attributes. This may require discussion.

Comment on lines +1 to +5
---
'astro': major
---

Fixes attribute rendering for `popover`
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
---
'astro': major
---
Fixes attribute rendering for `popover`
---
'astro': patch
---
Fixes attribute rendering for `popover`

@ematipico
Copy link
Member

@nanarino can you please be more specific about your concerns?

@nanarino
Copy link
Author

nanarino commented Jan 24, 2025

@nanarino can you please be more specific about your concerns?

null and undefined will definitely not be rendered; but for empty strings: popover={""} will be rendered; autofocus={""} will not, is confusing. It would be nice if the previous judgment was also changed to htmlBooleanAttributes.test(key) && typeof value === 'boolean', but this is a destructive update.

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) semver: major Change triggers a `major` release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants