Skip to content

Centering a dialog like the primitive example makes the dialog blurred caused by a subpixel rendering #271

Closed Answered by vladmoroz
italodeandra asked this question in Q&A
Discussion options

You must be logged in to vote

You'd set position: fixed, inset: 0, and display: flex on the overlay, and nest the dialog content in the overlay. For a reference, inspect Radix Themes implementation of how the dialog parts are styled:
https://www.radix-ui.com/themes/playground#dialog

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@italodeandra
Comment options

@vladmoroz
Comment options

Answer selected by italodeandra
@italodeandra
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants