FAQ accordion component solution using flexbox
Design comparison
Solution retrospective
Hi everyone, could you look at the following.
If you look at CSS I have commented out a declaration in the rule '.faq-accordion .faq-list .answer > div', this helps transition while collapsing a question in the accordion, but I commented it out because this transition causes jerking in the component while expanding another question, this is due to visibility property as transition won't work on this property.
But at the same time accessibility is also important, for them the screen reader should not read out all the answers at a time so either display or visibility property is required.
How to achieve transition on collapsing the question without that jerking issue at the same time considering accessibility.
comment out if any error I made or of my perceptions are wrong.
Community feedback
- @NaveenGumastePosted over 2 years ago
Hello Shameer Kamaludeen ! Congo 👏 on completing this challenge
Just one think:
- The "FAQ" should on the left size not in middle as per the original design
happy Coding😀
Marked as helpful0@shameerkamaludeenPosted over 2 years agothank you @Crazimonk I haven't noticed actually before submitting, had fixed it already.
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord