Padding options for "full width" components #2337
Replies: 2 comments
-
|
Hi @gio-tagli-telefonica, thanks for opening a discussion. Having a paddingX property although would solve the padding problem, is not transparent with other anatomy changes that occur in these components when changing screen sizes, an example: The cover hero component has a property named sideExtra that allows to add a second slot to the component, in mobile, this second slot is stacked vertically with the rest of the content, but in tablet and desktop this slot is placed in the right: Example: sideExtra property in coverHero So can't assume that the padding is the only difference between mobile and tablet component display. Example: default itemsPerPage in carousel Why we didn’t support tablet before in FigmaHistorically, to reduce maintenance, we avoided creating tablet variants because usage of tablet devices in products supporting Mística was significantly lower than mobile or desktop. How can we support this casesWe’ve considered a few options:
With this context: do you see another solution we may have overlooked? |
Beta Was this translation helpful? Give feedback.
-
|
Hi, @aweell, thanks for the answer and so sorry for the delay in replying. I was not aware of behaviors that are specific to the tablet breakpoint in some components. It definitely adds complexity. I believe the best option would be to add a new variable mode (mobile, tablet, desktop). Maybe you don't need new variants, I believe it's possible to control all anatomy changes using only variables. However, I agree that it is a monumental amount of work, and probably it would have to be a new library in Figma. Designers wouldn't be able to simply update the current libraries in their files, they would have to gradually migrate to the new library. About the 3 other options:
The only other option I can think of is the following:
What do you think of it? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Goal
To discuss the possibility of updating some components in Mobile library so their contents get properly aligned with Mística grid for md breakpoint range (768 to 1023).
Context
Some components in Mística, such as the Header and the CoverHero, are meant to be used in "full width" within screen frames in Figma, I believe that's why they have a fixed padding of 16px in Mobile library, right?
However, when we try to create screens in Figma that correspond to the md breakpoint range (768 to 1023), the contents within these components do not get aligned with the Tablet (768px) layout guide, because its side margins have a fixed padding of 32px (check image below).
Is it possible to update these components in a way we can properly align their content with the Tablet (768px) layout guide? Maybe we can have a "Padding X" property that we can turn on and off according to each scenario?
Impact
Adding a "Padding X" property would allow designers to properly create screens in Figma for the md breakpoint range without having to manually edit the paddings of some components such as the Header and the CoverHero.
Discussion Questions
Additional considerations
No response
Do you have a visual proposal?
No response
Beta Was this translation helpful? Give feedback.
All reactions