Skip to content

feat(runtime-dom): add popover api attributes #10977

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

userquin
Copy link
Member

No description provided.

@userquin userquin marked this pull request as draft May 18, 2024 19:21
@@ -10,17 +10,21 @@ import { makeMap } from './makeMap'
* - nomodule -> noModule
* - novalidate -> noValidate
* - readonly -> readOnly
* - popovertarget -> popoverTargetElement (TODO: how to map this?)
Copy link
Member Author

Choose a reason for hiding this comment

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

no idea how to handle this

Copy link

Size Report

Bundles

File Size Gzip Brotli
runtime-dom.global.prod.js 90.8 kB (+34 B) 34.5 kB (+14 B) 31.1 kB (+10 B)
vue.global.prod.js 148 kB (+34 B) 53.7 kB (+11 B) 48 kB (+18 B)

Usages

Name Size Gzip Brotli
createApp 50.8 kB (+34 B) 19.9 kB (+11 B) 18.1 kB (+13 B)
createSSRApp 54.2 kB (+34 B) 21.2 kB (+11 B) 19.3 kB (+10 B)
defineCustomElement 53.1 kB (+34 B) 20.6 kB (+12 B) 18.8 kB (+41 B)
overall 64.5 kB (+34 B) 24.9 kB (+12 B) 22.6 kB (+18 B)

// Popover API: https://developer.mozilla.org/en-US/docs/Web/API/Popover_API
popover?: true | 'auto' | 'manual'
onBeforetoggle?: Event
onToggle?: Event
Copy link
Member Author

Choose a reason for hiding this comment

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

both should be ToggleEvent, also in DetailsHTMLAttributes

Copy link
Member Author

Choose a reason for hiding this comment

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

upps, onBeforetoggle should be onBeforeToggle

@userquin userquin changed the title feat(shared,dom): add popover api attributes feat(runtime-dom): add popover api attributes May 18, 2024
@haoqunjiang haoqunjiang added the 🍰 p2-nice-to-have Priority 2: this is not breaking anything but nice to have it addressed. label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍰 p2-nice-to-have Priority 2: this is not breaking anything but nice to have it addressed. version: minor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants