-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Convert the existing overlays to use <dialog>
elements (issue 14698)
#14710
Conversation
374c655
to
320f2f0
Compare
/botio-linux preview |
/botio integrationtest |
From: Bot.io (Linux m4)ReceivedCommand cmd_integrationtest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/54bc80e2b6db665/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_integrationtest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/83ab7bce4bf095b/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/54bc80e2b6db665/output.txt Total script time: 4.06 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/83ab7bce4bf095b/output.txt Total script time: 8.07 mins
|
I tested in windows 11 in using high contrast themes (I selected "Dusk") and there is potentially a regression. In Firefox nightly, in using http://54.241.84.105:8877/4c5d97f84b91cdd/web/viewer.html: In Firefox nightly, with the builtin viewer: In edge, in using http://54.241.84.105:8877/4c5d97f84b91cdd/web/viewer.html: @Snuffleupagus, do you think it's an issue on our side or something wrong with dialog itself or something else ? |
Given that I didn't really change the CSS all that much, and that the regular Edit: It almost seem as if the |
We should be using the version that respects user-set colors (so the non-black and white one, if you're running Dusk theme). If this happens on all dialogs, it is probably a platform bug -- do we have something on file for that in bugzilla? |
While I'm currently on an older Windows version, I can reproduce similar problems with dark high contrast themes in basic |
3aad662
to
2362149
Compare
Given that this is an upstream issue, should we just continue with this or do we need to await a bugfix upstream? |
I think we should await for a fix upstream. The first step would be to file a bug on Bugzilla. @Snuffleupagus could you do that? |
I filed a bug upstream yesterday: |
This replaces our *custom* overlays with standard `<dialog>` DOM elements, see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog, thus simplifying the related CSS, HTML, and JavaScript code. With these changes, some of the functionality of the `OverlayManager` class is now handled natively (e.g. `Esc` to close the dialog). However, since we still need to be able to prevent dialogs from overlaying one another, it still makes sense to keep this functionality (as far as I'm concerned).
This way we're able to store the `<dialog>` elements directly, which removes the need to use manually specified name-strings thus simplifying both the `OverlayManager` itself and its calling code.
…es` dialogs This will hopefully improve the a11y a little bit in these dialogs, however there's most definately more things that can be done here (by someone more knowledgeable about a11y).
Please note that this patch is purposely quite basic, e.g. it doesn't add the polyfill-CSS in order to simplify the build process, and things such as `::backdrop` thus isn't working. However, this patch does ensure that older browsers can at least still *access* all of the previous overlays and that things like e.g. opening of password-protected documents respectively printing still works.
2362149
to
c9f262c
Compare
https://bugzilla.mozilla.org/show_bug.cgi?id=1761611 has already been fixed in Firefox Nightly, and the HTML standard was updated accordingly as well, hence that should no longer block this PR as far as I can tell :-) /botio-linux preview |
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/267a19444d3a822/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/267a19444d3a822/output.txt Total script time: 2.54 mins Published |
That sounds a lot like issue #14649, which honestly feels unrelated to this PR.
In this PR, I've purposely tried to only convert the existing overlays while not changing e.g. the look of things. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Thank you for doing that.
Please refer to the individual commit messages for additional details.