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

[WebAPI] Show focus indication on elements when focus set programmatically #19302

Closed
6 of 7 tasks
hamishwillee opened this issue Aug 9, 2022 · 1 comment
Closed
6 of 7 tasks
Assignees
Labels
Content:WebAPI Web API docs fx release archive A closed issue relating to firefox release notes for developers.

Comments

@hamishwillee
Copy link
Collaborator

hamishwillee commented Aug 9, 2022

Acceptance Criteria

  • The listed features are documented sufficiently on MDN
  • BCD is updated
  • Interactive example and data repos are updated if appropriate
  • The content has been reviewed as needed

For folks helping with Firefox related documentation

  • Set bugs to dev-doc-complete
  • Add entry to Firefox release notes if feature is enabled in release
    or
  • Add entry to Firefox experimental features page if feature is not yet enabled in release

Features to document

Now parameter to HTMLElement.focus() parameter - focusVisible

Probably worth doing an interactive example.

Actual results:

The element focused does not get a focus ring unless it is an INPUT element of type TEXT or a TEXTAREA.

Related Gecko bugs

https://bugzilla.mozilla.org/show_bug.cgi?id=1765083

Other

Previously it was entirely up to the UA to decide if it should visibly indicate an element as focused if focus was set by javascript. Generally this was done for text areas but not necessarily for other elements. The spec was updated around April to add an option to HTMLElement.focus() to allow the programmer to say whether they want this or not.

The update to spec was done here: whatwg/html#8087

@github-actions github-actions bot added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Aug 9, 2022
@hamishwillee hamishwillee changed the title [JS] Worth a release note https://bugzilla.mozilla.org/show_bug.cgi?id=1765083 [WebAPI] Programatically set focus as visible on elements Aug 9, 2022
@hamishwillee hamishwillee changed the title [WebAPI] Programatically set focus as visible on elements [WebAPI] Show focus indication on elements when focus set programmatically Aug 9, 2022
@hamishwillee hamishwillee added Content:WebAPI Web API docs Firefox 104 and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Aug 9, 2022
@hamishwillee hamishwillee self-assigned this Aug 9, 2022
@hamishwillee
Copy link
Collaborator Author

hamishwillee commented Aug 9, 2022

@Rumyra Rumyra closed this as completed Aug 23, 2022
@bsmth bsmth added fx release archive A closed issue relating to firefox release notes for developers. and removed Firefox 104 labels Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs fx release archive A closed issue relating to firefox release notes for developers.
Projects
Archived in project
Development

No branches or pull requests

3 participants