components icon indicating copy to clipboard operation
components copied to clipboard

feat(overlay): CDK overlay should use native html dialog element

Open ErfanNaz opened this issue 3 years ago • 5 comments

Feature Description

since there is now the browser native dialog element, cdk overlay can use this to get better browser native behavior.

Use Case

get better browser native behavior.

ErfanNaz avatar May 17 '23 08:05 ErfanNaz

dialog is fit for dialog element but here popover is a better solution, but still only partially for the main container as popover element does not have something as layer behavior as cdk overlay has

kbrilla avatar May 28 '23 09:05 kbrilla

In v21 all the CDK overlays use native popovers by default. It'll likely be tricky to switch the CDK dialog to the native dialog element, because it has the behavior of making everything outside the dialog non-interactive which will break a lot of our internal users.

crisbeto avatar Nov 25 '25 08:11 crisbeto

In v21 all the CDK overlays use native popovers by default. It'll likely be tricky to switch the CDK dialog to the native dialog element, because it has the behavior of making everything outside the dialog non-interactive which will break a lot of our internal users.

That's not compleatly true: Dialog have two methods: show() and showModal() and only showModal is making everything else non-interactive.

kbrilla avatar Nov 25 '25 10:11 kbrilla

I think that might disable things like the native focus trapping as well though.

crisbeto avatar Nov 25 '25 10:11 crisbeto

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.