Centering a dialog like the primitive example makes the dialog blurred caused by a subpixel rendering #271
|
The Dialog example from here uses the following Tailwind class for centering it This is how it looks: This is how it should look (after removing translate): I know this issue isn't really related to Radix, but I would like to know what I could do to fix this? Does anyone have any suggestions? |
Answered by
vladmoroz
Jan 30, 2024
Replies: 1 comment 3 replies
|
You can put the dialog content panel into a flex layout with |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


You'd set
position: fixed,inset: 0, anddisplay: flexon 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