-
Notifications
You must be signed in to change notification settings - Fork 96
fix(NcModal): apply box sizing to modal content #4959
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
fix(NcModal): apply box sizing to modal content #4959
Conversation
ShGKme
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this counts as a breaking change.
Probably may break some modals that had content with styles for default border-box...
But I'd make this change, having different styles depending on mount point isn't good.
And +1 thing to think about global box-sizing: border-box; (#4956 👀)
I think every more complex modal will be broken as most of them are mounted to the body. So this needs to be considered. |
|
Maybe we put in on the |
|
@skjnldsv Does your approval mean we may not consider it as a breaking change and merge into v8? 😀 |
skjnldsv
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@skjnldsv Does your approval mean we may not consider it as a breaking change and merge into v8? 😀
Nah, should be for v9 then
Signed-off-by: Maksim Sukharev <[email protected]>
f1dc89f to
52d444b
Compare
☑️ Resolves
#content-vueelement, as all other components, it inherits style from NcContent (see here33f4af3)
bodyelement, where styles are not overwritten, and all element apart from<table>,<select>,<button>and<input>elements have `box-sizing: content-box by default<div class="modal-container">,<div class="modal-container__content">, and all that goes to<slot />🖼️ Screenshots
🏁 Checklist