@piushbhandari
Posted
had a quick look at your markup:
- i would change .faqs-header to a button instead of a div for semantic/accessibility reasons. additionally you can look into adding attributes aria-hidden for accordion content and aria-expanded for accordion buttons so screen readers will announce these.
- h3 to h2 since you have h3 right after h1
- because the accordion buttons are not actual <button> elements, your component is not accessible for keyboard users. hope this helps
Marked as helpful