Replies: 1 comment 1 reply
-
Hi, I think the documentation is not clear enough in that point: So default max-width-property is
If you set another default-width in config or in your modal-component itself you have to safelist the equal classes from the given link above. OR - if you would cover all max-w-classes in all responsive-variants without taking care of any max-width config:
Hope that helps. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have to add
safelist: [
'sm:max-w-sm',
'sm:max-w-md',
'md:max-w-lg',
'md:max-w-xl',
'lg:max-w-2xl',
'lg:max-w-3xl',
'xl:max-w-4xl',
'xl:max-w-5xl',
'xl:max-w-5xl',
'2xl:max-w-6xl',
'xl:max-w-5xl',
'2xl:max-w-7xl',
],
to my tailwind config or else it always shows sm:max-w-sm.
Tailwind seems to remove these classes as they are added after the page loads
Beta Was this translation helpful? Give feedback.
All reactions