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 the ability to not perform dialog focusing steps #2197

Closed
wants to merge 3 commits into from

Conversation

domenic
Copy link
Member

@domenic domenic commented Dec 20, 2016

This closes #1929 by providing an opt-out for the use cases discussed
there, via show({ skipFocusing: true }) and the same for showModal().
This was originally discussed in
https://www.w3.org/Bugs/Public/show_bug.cgi?id=24718.

Looking for sign-off on this from Blink (@danbeam) and Gecko (@nt1m).


💥 Error: Wattsi server error 💥

PR Preview failed to build. (Last tried on Jan 15, 2021, 7:57 AM UTC).

More

PR Preview relies on a number of web services to run. There seems to be an issue with the following one:

🚨 Wattsi Server - Wattsi Server is the web service used to build the WHATWG HTML spec.

🔗 Related URL

Parsing MDN data...
Parsing...



If you don't have enough information above to solve the error by yourself (or to understand to which web service the error is related to, if any), please file an issue.

This closes #1929 by providing an opt-out for the use cases discussed
there, via show({ skipFocusing: true }) and the same for showModal().
This was originally discussed in
https://www.w3.org/Bugs/Public/show_bug.cgi?id=24718.
@domenic domenic added addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest needs tests Moving the issue forward requires someone to write tests labels Dec 20, 2016
Copy link

@danbeam danbeam left a comment

Choose a reason for hiding this comment

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

looks good and matches my proposed implementation:
https://codereview.chromium.org/2560553002/

@nt1m
Copy link
Member

nt1m commented Dec 21, 2016

My main concern is naming, as @smaug---- mentioned in #1929 (comment)

@domenic
Copy link
Member Author

domenic commented Dec 21, 2016

@nt1m fixed. LGTY?

@danbeam
Copy link

danbeam commented Dec 22, 2016

skipInitialFocus is fine by me, too

<li><p>If the <code data-x="">skipFocusing</code> member of <var>options</var> is not present, or
if it is present but its value is false, run the <span>dialog focusing steps</span> for this
<code>dialog</code> element.</p></li>
<li><p>If the <code data-x="">skipInitialFocusing</code> member of <var>options</var> is not
Copy link
Member

Choose a reason for hiding this comment

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

This should be skipInitialFocus right ?

<li><p>If the <code data-x="">skipFocusing</code> member of <var>options</var> is not present, or
if it is present but its value is false, run the <span>dialog focusing steps</span> for
<var>subject</var>.</p></li>
<li><p>If the <code data-x="">skipInitialFocusing</code> member of <var>options</var> is not
Copy link
Member

Choose a reason for hiding this comment

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

Same here.

@nt1m
Copy link
Member

nt1m commented Dec 22, 2016

@domenic Looks good, with the two typos fixed.

@domenic domenic removed the needs implementer interest Moving the issue forward requires implementers to express interest label Dec 22, 2016
@domenic
Copy link
Member Author

domenic commented Dec 22, 2016

OK cool, so this just needs web-platform-tests before we can merge. @danbeam since you're working on a patch already, would you be up for contributing those?

@danbeam
Copy link

danbeam commented Dec 29, 2016

@domenic i suppose I can update web-platform-tests

they're a bit broken currently:
http://w3c-test.org/html/semantics/interactive-elements/the-dialog-element/dialog-showModal.html

I've sent a PR to fix up a little before I add a case for skipInitialFocus:
web-platform-tests/wpt#4409

@domenic
Copy link
Member Author

domenic commented Jan 13, 2017

Marking "do not merge" and "needs implementer interest" as per the latest discusisons in #1929 it appears Blink no longer supports this feature.

@domenic domenic added do not merge yet Pull request must not be merged per rationale in comment needs implementer interest Moving the issue forward requires implementers to express interest labels Jan 13, 2017
@domenic domenic marked this as a duplicate of #2871 Jul 31, 2017
@domenic domenic mentioned this pull request Jul 31, 2017
@whatwg whatwg deleted a comment Mar 9, 2019
@whatwg whatwg deleted a comment Mar 9, 2019
@annevk annevk added the topic: dialog The <dialog> element. label May 29, 2020
Base automatically changed from master to main January 15, 2021 07:56
@domenic domenic closed this in a9f103c Jan 26, 2023
@domenic domenic deleted the dialog-skip-focus branch April 13, 2023 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition/proposal New features or enhancements do not merge yet Pull request must not be merged per rationale in comment needs implementer interest Moving the issue forward requires implementers to express interest needs tests Moving the issue forward requires someone to write tests topic: dialog The <dialog> element.
Development

Successfully merging this pull request may close these issues.

unexpected focus results for tabindex + <dialog>.showModal()
4 participants