Reset dialog element styles (#11069)

* disable useragent styling for dialog

* nits

* Update src/css/preflight.css

* Simplify dialog reset

We don’t want to reset everything here. Just the padding should be enough.

* Update test

---------

Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
Co-authored-by: Jordan Pittman <jordan@cryptica.me>
This commit is contained in:
Eran Hirsch 2023-04-28 19:51:52 +03:00 • committed by Jordan Pittman
parent b885fff544
commit 243226887f
3 changed files with 144 additions and 128 deletions

View file

@ -302,6 +302,13 @@ menu {
padding: 0;
}
/*
Reset default styling for dialogs.
*/
dialog {
padding: 0;
}
/*
Prevent resizing textareas horizontally by default.
*/