You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a padding is given to the Accordion content using the class name ns-accordion-content, the opening and closing animation breaks.
Steps to Reproduce
import{NSAccordion}from"@newtonschool/grauity";importstyledfrom"styled-components";constStyledAccordionWrapper=styled.div` .ns-accordion-content { padding: 20px; }`;exportdefaultfunctionApp(){return(<><StyledAccordionWrapper>
# These 2 accordions have padding inside them
<NSAccordiontitle="Click Me"><div>This is the accordion description.</div><div>This is the accordion description.</div><div>This is the accordion description.</div></NSAccordion><NSAccordiontitle="Click Me"><div>This is the accordion description.</div><div>This is the accordion description.</div><div>This is the accordion description.</div></NSAccordion></StyledAccordionWrapper><NSAccordiontitle="Click Me"><div>This is the accordion description.</div><div>This is the accordion description.</div><div>This is the accordion description.</div></NSAccordion><NSAccordiontitle="Click Me"><div>This is the accordion description.</div><div>This is the accordion description.</div><div>This is the accordion description.</div></NSAccordion></>);}
Link to the code that reproduces this issue
No response
Description
When a padding is given to the Accordion content using the class name
ns-accordion-content, the opening and closing animation breaks.Steps to Reproduce
Expected behavior
No response
Actual behavior
No response
Browser
All
Version
v3.0.20
Additional Environment Information
Additional context
Screen.Recording.2025-05-29.at.4.14.50.PM.mov