-
Notifications
You must be signed in to change notification settings - Fork 549
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
feat(Slideover): handle top
and bottom
side
#1834
Conversation
3695137
to
62e655a
Compare
top
and bottom
to side
prop. top
and bottom
side
I was thinking that it would be possibile to leave the All of this if the solution i provided is good, meaning you can specify 2 different width options for the vertical and the horizontal, and have a default optimized config for both of them; the other solution is just provide example of how to customize the width key if in vertical mode but it sounds wrong to me. |
I think the easiest way to prevent breaking changes would be to keep the |
Clever! I'll update the pr..... |
It seems to work nicely. |
top
and bottom
sidetop
and bottom
side
@emavitta Thinking about it, this can be achieved using Thanks for the PR! π |
That's what i was thinking, it is easy to implement with |
@SatheesA It hasn't been released yet. However, you can try it out by using the edge package: https://ui.nuxt.com/getting-started/installation#edge |
Ok thanks π. But does the doc not reflect the current version in production? I have not picked the edge version and looking at 2.16.0 https://ui.nuxt.com/components/slideover#props |
Yeah unfortunately the components props are parsed on build and the docs deploy from the |
π Linked issue
Resolves #576
β Type of change
π Description
This pr adds
top
andbottom
to the side prop.It's just a working proof of concepts, meaning i didn't care about the braking changes it involves. Adding new config keys (
side
) forced me to remove the originalwidth
. I'd like to discuss in this pr how to reconcile my changes in the best way possible. I think the newsside
config (along with the newssideType
computed property) is a nice way to implement the change, but i'm open to everything.Also, not discussed directly in the issue, i'd like to know if could be interesting adding a
fullscreen
reactive option, letting the slideover go fullscreen; this could be usefull in mobile mode, creating the drawer effect and letting the user enlarge the content on an action.π Checklist