Closed AyalaBu closed 1 year ago
first question that need to be answered is weather we are adding the divider or are the consumers doing it with adding vwc-divider.
either way we need to extract the inline-padding
from main-wrapper
class and have all 3 parts - header, content and footer.
We need to bear in mind that this also means that we need to no-render these parts if there's no content to avoid having un-necessary spaces.
If we are implanting the divider - we need to decide if it is related to the header + footer, the content or regardless.
what's the difference between the 2? when are dividers needed? when are they not? is there more than personal taste to it?
@rachelbt @yinonov Although the divider has an aesthetic function as well, it also functions as an "order creator", since it divides the content to the easily understandable sections: header, content & footer
So there will be an option with divider and without?
I rechecked with Joella's original design an this is the situation:
So these are the variants that need to exist:
so we will either provide our users top / bottom / both divider member or let them add it themselves but either way we need to adjust the padding issue.
I'd still ask, why should an author decide whether to add dividers or not. It can be enforced conditionally when requirements are met, as mentioned, when header, body and footer are present
This is what I wrote: the author doesn't decide.
I'd still ask, why should an author decide whether to add dividers or not. It can be enforced conditionally when requirements are met, as mentioned, when header, body and footer are present
or if there's only header and content...
Ok. Sounds like a css work more than API
All of the examples on the right in Figma - that are suppose to reflect "no-content -> no divider" design are wrong. In the API we have header that contains icon-title-close button. The text beneath the is the content of the dialog. So basically it will need to have a divider too.
Maybe we need to start with turning the text member to be sub-title (https://github.com/Vonage/vivid-3/issues/911).
Yes. That's the convention
after discussing with design as follow up to this Jira ticket was decided that:
There are a few layout designs for the dialog layout, one of them contains a separators - it appears here:
https://www.figma.com/file/JJNgZvt1qf3ydYmOwbE3Jg/Vivid-UI-Kit---3.0-WIP?node-id=19420%3A160156&t=mBYOHp9Om3VmCrkJ-3
I think that this feature is important, because it orders a content of the component.
related Jira ticket: https://jira.vonage.com/browse/VIV-790