-
I'm seeing a warning when rendering modals. Is there additional css that needs to be included for modals?
When the modal is rendered I see this warning in my console:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This warning shows up because the Please freely ignore the warning for now, I will add a ticket to our backlog to apply a root style to disable this warning in the next release. If you're seeing the warning in your tests and it's a big bother, you can mock out the
|
Beta Was this translation helpful? Give feedback.
This warning shows up because the
@reach/dialog
package we wrap in our primitive does a check to make sure folks are using the styles (https://github.com/reach/reach-ui/blob/develop/packages/utils/src/index.tsx#L83). I'm not sure why they thought this was wise, but I'm seeing this warning locally too.Please freely ignore the warning for now, I will add a ticket to our backlog to apply a root style to disable this warning in the next release.
If you're seeing the warning in your tests and it's a big bother, you can mock out the
checkStyles
function like this:source