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 custom element default focusability proposal #834

Merged
merged 3 commits into from
Sep 4, 2019

Conversation

rakina
Copy link
Member

@rakina rakina commented Sep 4, 2019

Mostly a summary of discussions in #762.
The proposed API uses CSS-selector like syntax, but other shapes for the API are also listed in the "alternatives considered" part.

cc @domenic @tkent-google @rniwa @alice @annevk from the thread

@rniwa
Copy link
Collaborator

rniwa commented Sep 4, 2019

Are you proposing this as an agenda item for #826?

@rakina
Copy link
Member Author

rakina commented Sep 4, 2019

Are you proposing this as an agenda item for #826?

Yeah I think it'd be nice to talk about this in the TPAC session!

Copy link
Collaborator

@domenic domenic left a comment

Choose a reason for hiding this comment

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

LGTM with nits

The proposed API above uses a CSS selectors to represent the built-in elements, but we’ve also considered some variants:

- Using “tagname + one attribute name + attribute’s value” combination,
e.g. `elementInternals.matchFocusBehaviorOf = {"input", "type," "button"}`
Copy link
Collaborator

Choose a reason for hiding this comment

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

This isn't valid JS syntax. Maybe matchFocusBehaviorOf("input", "type", "button") or three separate attributes or something like that.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops, changed. Thanks!

proposals/custom-element-default-focus.md Outdated Show resolved Hide resolved
proposals/custom-element-default-focus.md Outdated Show resolved Hide resolved
proposals/custom-element-default-focus.md Outdated Show resolved Hide resolved
@rniwa
Copy link
Collaborator

rniwa commented Sep 4, 2019

Are you proposing this as an agenda item for #826?

Yeah I think it'd be nice to talk about this in the TPAC session!

Could you add a comment in the issue?

rakina and others added 2 commits September 5, 2019 00:43
@rakina rakina mentioned this pull request Sep 4, 2019
@domenic domenic merged commit a01568e into WICG:gh-pages Sep 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants