Skip to main content
Solved

How do I place a layer on top of text with auto layout component?

  • December 1, 2021
  • 5 replies
  • 10136 views

Isabel_Edwards

In a dropdown menu I want a rectangle to highlight the menu options when a user hovers over each one.

The problem is when I add it to my auto layout component it places it to the top or bottom of the text and I can’t figure out how to place it on top of the text.

I can do it when auto layout isn’t selected, but I need auto layout for formatting consistency.

Thanks in advance!

Best answer by Isabel_Edwards

Ah ok yes I get what you mean, I’ve added the text into multiple frames within the component and added a fill, thank you!

View original
This topic has been closed for comments

5 replies

tank666
  • 4859 replies
  • December 1, 2021

You probably need to add a fill in Auto Layout, not place a rectangle.

But if you still need an absolute position in Auto Layout, do not forget to vote in this thread: Absolute position in Auto Layout


Isabel_Edwards

There already is a fill (white) for the background of the component if that’s what you mean?


tank666
  • 4859 replies
  • December 1, 2021

You can use interactive components. Add variants like Hover, Active, etc where you can change the fill.


Isabel_Edwards

Ah ok yes I get what you mean, I’ve added the text into multiple frames within the component and added a fill, thank you!


  • 0 replies
  • December 31, 2021

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings