Skip to content

active border / drop shadow on dialog transition #993

Discussion options

You must be logged in to vote

Hey! Thank you for your bug report!
Much appreciated! 🙏

The reason this happens on the documentation site is sort of by design.
What happens is that the button will receive focus, therefore the ring will show. The reason the ring goes away, is that the iframe this example is running in, stole the focus from the main page. We don't want that, so we restore the focus to where the page initially loaded (usually document.body).

Normally when a Dialog is open, you don't want to be able to interact with the page content behind it, and if you want to do that then you would have to close the Dialog.

So now we basically cheat so that you can see the page AND see the Dialog (purely as a demo).

Hope…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jonathanstanley
Comment options

Answer selected by jonathanstanley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants