Share via

Using Accordion from @pnp/spfx-controls-react and it is not styled as expected

Dhilip Kumar 45 Reputation points
2025-07-29T14:49:13.65+00:00

Hi Everyone,

I am facing this issue where the Accordion is not rendering as expected

expected:

Screenshot 2025-07-14 230956

What I am getting is

User's image

I am using spfx 1.21.1, node v22.15.0, react@17.0., typescript@5.3.3

What could be the possible reasons, I am atttaching my component code and scss style below,

User's image

User's image

Please help me to understand the issue here. Thanks in advance.

Microsoft 365 and Office | SharePoint | Development

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.