Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add modal options with responsive. #25767

Open
1 task done
hieusmiths opened this issue Jul 23, 2020 · 1 comment
Open
1 task done

Add modal options with responsive. #25767

hieusmiths opened this issue Jul 23, 2020 · 1 comment

Comments

@hieusmiths
Copy link

hieusmiths commented Jul 23, 2020

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

Now, assume you have a modal, when on the desktop it will has width is 60%
Then when resize viewport down to 768px you want it has width is 95%.

What does the proposed API look like?

I think we can add witdh option is an object like here:

width={{sm: 40%, md: 55%}}
Thank so much team

@nvmnghia
Copy link

bump this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants