-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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(VDivider): visiblity in container with dynamic height #19828
Conversation
This ended up breaking vertical dividers that use "align-self-center" within containers that have a specified height. https://play.vuetifyjs.com/#eNptUMFOwzAM/RUTCRUkSjlwQt0kbvwBB8IhpG6J5CaR4/Yy7d+Xpd3USbtE7z3H79n+OajEtvmM8XWeUH2oVnCMZAT32gO0c21iLPBC6j/Dq1CkFI1F3rfNFWq/KXdudh0yzMjirCEg9IP877R6f3vUCiyZlDIz5AZfJ6S+tugFWaviufbfmt7LLKUsbEdcecZts9kr02TZRYGEMi3ruTEGFjgAYw9H6DmMUOWTVEuwDT4JjGmA3fnHU/WFRAG+A1P3UD2fAxbLbKaOL34iKs/vCWOPdNg= |
@johnleider I can see that translating edit 1: Quick workaround would be edit 2: There was this guy in 2020 (#12054) with use case similar to this. Nowdays, his code does not require any additional styles (if we ignore |
I feel having to use the utility classes is unintuitive. Whatever changes are made, we should probably add some e2e tests to make sure this doesn't happen again. For now, I'm not sure the best path, however, I'm leaning towards changing to width/height from max width/height. |
I have spent a bit of time reviewing paid themes based on Vuetify and found 2 cases where going back to edit: Two more test cases will detect changing back to |
Want to take this under your wing @J-Sek ? |
Description
Assuming
<v-divider vertical>
makes sense only inside flexbox container, theheight: auto
allowsalign-self: stretch
to take effect when container does not have explicit height.Example in docs does not expose the issue, because
d-flex
gets additional explicit height, but in real life, we usually leave height to be dynamic and determined based on the children height.After the change I did not notice any negative effects, but I may not know about use cases outside flexbox.
fixes #19827