• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Component Default and New state not working.

New Here ,
Jun 26, 2023 Jun 26, 2023

Copy link to clipboard

Copied

Hi, i am trying to create a new/hover state for separate sections under one component. I have created a default state with how i want the page to look and then created new states for each of the singular components to suggest the sub-states are dropdown sections. However, when i am in preview, none of the states are working. I created a hover state which manipulates the exact movement to what i want. Could someone please suggest what i am doing wrong or how i can fix the issue? 

 

The way i have created the states are Default  > New State > Move elements for a new state. I have created screenshots of the page.

Screenshot 2023-06-26 at 13.05.07.pngScreenshot 2023-06-26 at 13.05.22.pngScreenshot 2023-06-26 at 13.05.38.png

Views

221

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jun 26, 2023 Jun 26, 2023

Hi @Sara26902394q826, if I'm not missing something, I think you need to create an "active/open" kind of state for each content card right? So I was able to do that with a tap trigger in this simple example (I only did for "A" and "B" states in my example, but I'm sure it'll give you an idea) So when I tap button A, it gets expanded/opened like a dropdown, and when I tap it again, it gets closed (you can also set some interactions for active/open element to be closed when another/any of them tapp

...

Votes

Translate

Translate
Community Expert ,
Jun 26, 2023 Jun 26, 2023

Copy link to clipboard

Copied

Hi @Sara26902394q826, if I'm not missing something, I think you need to create an "active/open" kind of state for each content card right? So I was able to do that with a tap trigger in this simple example (I only did for "A" and "B" states in my example, but I'm sure it'll give you an idea) So when I tap button A, it gets expanded/opened like a dropdown, and when I tap it again, it gets closed (you can also set some interactions for active/open element to be closed when another/any of them tapped but I haven't done that since I wanted to have a quick example) you can see the prototype here: https://xd.adobe.com/view/008a8a3e-ffbd-455b-982e-f24a50a1aed7-55d9/ and the file here: https://www.dropbox.com/s/mbm7yjziy7m46oc/multiple-component-states.xd?dl=0

Hope this helps! 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 27, 2023 Jun 27, 2023

Copy link to clipboard

Copied

LATEST

This is exactly what i wanted! Thank you!! 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines