why does my fram component in figma not have hug
- User
why does my fram component in figma not have hug
- Assistant
In Figma, "Hug" is a property used with auto-layout frames to automatically adjust the size of the frame based on the size of its content. If your frame component in Figma is not set to "Hug," here are some potential reasons and solutions:
-
Auto Layout Not Applied: Verify that you have applied auto layout to the frame. If the frame does not have auto layout enabled, it won't have the "Hug" option.
-
- User
why does my padding only work on the left side and ignores right side
- Assistant
- User
Padding: 12px 24px does this mean 12 is on the x axis?
- Assistant
In CSS-like shorthand, the padding values you mentioned (
12px 24px) represent the vertical and horizontal padding settings applied to an element. The specific interpretation is as follows:- The first value (
12px) applies to the top and bottom padding (the y-axis). - The second value (
24px) applies to the left and right padding (the x-axis).
So in this case:
- Top padding: 12px
- Bottom padding: 12px
- Left padding: 24px
- Right padding: 24px
If you meant to refer to x-axis as left and right, then yes, the
24pxapplies to both left and right padding. Thus, to clarify:- 12px is for the top and bottom (y-axis)
- 24px is for the left and right (x-axis)
If you were looking for padding to be different vertically and horizontally, such as
12pxfor top/bottom and24pxfor left/right, the shorthand you used is indeed correct. - The first value (
- User
how to add show local components in figma side bar
- Assistant
In Figma, if you want to show or access local components in the sidebar, you can use the Assets panel. Here’s how to do it:
Steps to Show Local Components in Figma Sidebar:
-
Open the Assets Panel:
- Go to the left sidebar of your Figma interface.
-
- User
can i add two properties to a button component in figma? fo exampe i want it to be in the hovered state but also be a secondary button which has different padding
- Assistant
- User
Click on the Properties section (when your component is selected). i cant find this
- Assistant