You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use shadow DOM instead of an iframe to encapsulate CSS
Fixnetlify#161
The problem: the widget uses an iframe to encapsulate its CSS and
prevent leaking it to the projects using the widget (and vice versa).
But since the iframe has a `src` attribute with the value `about:blank`,
password managers do not work properly (they refuse to set a password
without a corresponding url).
The solution: as suggested by this comment netlify#161 (comment),
this commit replaces the iframe by a shadow DOM element, which still
encapsulates the modal CSS, but lets password managers do their thing
(confirmed on Firefox 84.0.2).
0 commit comments