Skip to content

Dialog element styles are not reset by preflight #11070

Closed
@eranhirsch

Description

@eranhirsch

What version of Tailwind CSS are you using?

latest (3.3.1)

What build tool (or framework if it abstracts the build tool) are you using?

create-react-app (post-css)

What version of Node.js are you using?

n/a

What browser are you using?

Chrome (Version 112.0.5615.138 (Official Build) (64-bit))

What operating system are you using?

Windows 11 (22H2)

Reproduction URL

https://play.tailwindcss.com/H833bFMZwQ

Describe your issue

HTML Dialog elements are styled by the useragent, specifically a padding of 16px is added, a border of 1, and text and background colors are set. All of this feels like stuff missing from preflight. It actually took me some time debugging just to find out that the padding is coming from the useragent, as I was not expecting it.

Some links:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions