Open felipepowlist opened 5 months ago
You proposal looks pretty great IMO! Thoughts @pedroalexandria , @beatrizmilhomem ?
Hey, @felipepowlist! Sorry for taking so long to answer, I was on vacation. Great proposal, I can see the benefit of changing the space tokens.
space-4
instead of space-3
? It's just a 4px difference, but with space-3
I think the content is too tight. radius-3
only for modals. Should we apply it for all popovers too? If so, we should test in other components.text-emphasis
on the filter name and use text-body
on the option applied. What do you think?Example of applying radius-3
to the Menu popover. In this case, the space-3
padding works well because the items have an extra padding.
@beatrizmilhomem I'm aligned with all your proposals! For me, we can move forward with this!
@felipepowlist Hello! As I've mentioned in the comment above, the popover uses the Content component as a base. The Content basically creates rules for padding according to the container width, which is part of the spacing guidelines for the Admin. You can see how the rules work in this Figma component.
Since the popover uses those rules, the changes should happen in the rules and the Content itself, instead of only in this specific popover. Besides Popovers, Content is also currently used in Modals and Pages. So it is necessary to make tests to answer questions like: Should we change only the padding for 240 - 379px content? (Filter's popover is in this width interval) If so, how does it affect other popovers within the same width interval? Will this single change make sense within the spacing usage in the Admin? Or should we review all the Content padding rules, which impact other components?
Considering all that, are you available to make those tests and evolve your initial proposal? It is not a problem if you don't have the bandwidth now! If that is the case, we will tag this issue as design: wanted
so that another person (or even you in the future!) can move on with it. If you have any questions, please reach out to any of the maintainers!
I can make this exploration and share here ;)
@felipepowlist Have you managed to take a look at this? Do you need any help?
I finally had some spare time to work on this. It's not super structured but I have a proposal for review here
@davicostalf @beatrizmilhomem
Boa @felipepowlist ! ✨
Token | Usage |
---|---|
$radius-2 | Buttons, Inputs, Filters, and Tooltips |
$radius-3 | Modals, Alerts, Toasts, Cards, and Popovers |
É isso?
Achei que as mudanças de padding no content fazem sentido.
Vale separar a mudança de border radius em uma issue separada. Será que não vale um token novo para containers maiores como Modais terem um border radius ainda maior?
Então, eu tenho pensado no radius de forma que eles escalem considerando o que está contido neles. Porém, eu acho que a forma que a @beatrizmilhomem articulou é suficiente pra comunicar essa mudança agora. Sugiro subir esse fix agora e acompanhar pra ver se precisaremos de outros tokens de radius ou se esses serão suficientes.
Fiz testes aqui com conteúdo no mobile e queria saber as impressões de vocês pra gente poder seguir.
Estou de acordo. O único empecilho que vejo é que 16px pra mobile não está de acordo com o grid que definimos em platform foundations. Mas 24px também não estava, então acho que podemos seguir em frente.
De acordo também! Bora seguir.
Próximos passos Content
Radius
Problem
The popover for filters is already a small component and having it's margins and padding too lose decreases the area to display the actual content. Considering that we can have filters with long lists of items, search and action buttons on the bottom, I believe there's room to balance the white space to focus more on the content and optimizing the usage of space.
Solution
https://www.figma.com/file/n11HvLuYnfhb59w0vAjPWn/Merchant-Org---Ideas-and-Explorations?type=design&node-id=467-67036&mode=design&t=JwcRAORroBksrtje-4
Usage examples
Dependencies
No response
References
No response