Skip to main content
Solved

Why can't I define properties for variants before combining them?

  • November 13, 2021
  • 5 replies
  • 653 views

imagorilla

Let’s say I want to create multiple variants of a button. While creating them, I name them the following:

Buttons/Type: Primary/Icon: False
Buttons/Type: Primary/Icon: True

I then select them both and click “Combine as variants”. The combined component doesn’t inherit the property names. Shouldn’t it be the other way around?

Best answer by tank666

To preserve property names, the syntax should be like this:
Property 1=Value 1, Property 2=Value 2, …

But in this way the name of the component is lost.

View original
This topic has been closed for replies.

5 replies

tank666
  • 4873 replies
  • Answer
  • November 13, 2021

To preserve property names, the syntax should be like this:
Property 1=Value 1, Property 2=Value 2, …

But in this way the name of the component is lost.


imagorilla
  • Author
  • 2 replies
  • November 13, 2021

makes sense, thanks for the answer!

So I guess defining property names prior to combining variants is not supported then?

I tried removing “Buttons” from the example I described in the original post and the properties don’t get inherited in that case either.


tank666
  • 4873 replies
  • November 13, 2021

Instead of a colon :, there must be an equal sign = and instead of a slash / there must be a comma ,.


imagorilla
  • Author
  • 2 replies
  • November 13, 2021

that ended up working perfectly, thank you so much! 😃


  • 0 replies
  • December 13, 2021

This topic was automatically closed after 30 days. 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