Skip to main content
Question

Instance of the parent component do not show variants of its children

  • December 31, 2022
  • 2 replies
  • 505 views

Gultekin

I have made a menu item component that has 3 variants, state, background and with counter.

I put that menu item into another component which is bottom menu. I have instances of menu item inside the menu component. When I select each menu item inside that menu component, I can see and change its variants and it works fine. But when I make an instance of that bottom menu into each page, the menu item variants don’t work, like I change from default to active and it doesn’t show the variant. Very weird and doesn’t make sense to me. Can anyone explain and show how to fix it?

This topic has been closed for replies.

2 replies

Gultekin
  • Author
  • 3 replies
  • January 1, 2023

Actually I realised that most variants work but the colour doesn’t change. I have a variant called state, when active it should change the colour of the icon, but doesn’t swap colour. other variants work. In the main bottom menu component colour (state=active) works fine though.


  • 0 replies
  • January 31, 2023

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