Will we be able to add an open and close animation to Disclosure? #7412
              
                Unanswered
              
          
                  
                    
                      vicky-comeau
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 3 comments 2 replies
-
| @vicky-comeau Where you able to add animations to accordions? (Disclosure if you prefer that name) | 
Beta Was this translation helpful? Give feedback.
                  
                    2 replies
                  
                
            -
| +1, this would be extremely useful | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            -
| ticket to follow: #7528 | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I was wondering if it is in the future plans to allow slide up and down animations or transitions to the Disclosure/DisclosureGroup components.
I have tried to add this to Disclosure, with no success. I can add it for when it opens, but because isExpanded is set to false immediately and the content is hidden, I cannot get the proper height and the close transition does not work. I would end up having to control state on my side instead of using the react aria component.
If anyone has any ideas on how to currently do this, I'm all ears.
Beta Was this translation helpful? Give feedback.
All reactions