FAQ Accordion Card | HTML CSS Sass JS

Solution retrospective
Hello Everyone! 👋
I finally finished the first JavaScript challenge. 🎉
After learning JavaScript for about one month. Here's the result! 😎
Now for the questions:
- Does this website looks good on your device?
- For the
FAQ
, I uppercased the letter on the HTML file instead of doing it on CSS. I'm afraid that the screen reader will pronounceFAQ
when it should spellF-A-Q
(letter by letter). So, is the screen reader smart enough to spell thefaq
letter by letter? - Please try to navigate this website using your keyboard. If you don't know how to navigate using a keyboard, see the keyboard support section. Do all the keys work based on the functionality?
- For those of you who have finished this challenge, which text uses a very dark grayish blue color (
hsl(237, 12%, 33%)
)?
Any questions on the technique that I'm using are very welcome!
Also if you want me to give my feedback on your solution to this challenge, feel free to give me the link in the community feedback! I will be glad to help you too!
Hint: Try to disable JavaScript to get the pop-up box that will give you the link to the non-javascript version (using details
and summary
tag) or just click this.
Thanks!
Please log in to post a comment
Log in with GitHubCommunity feedback
- P@dwhenson
Hey @vanzasetia lovely job here! 🙌 Looks great and functions really nicely with the keyboard.
Did you consider using the
details-summary
tag here? If so I'd be keen to know why you opted not to use it. I just ask as it might have made your mark-up easier and require less aria attributes.** Hang on I think I missed the link to your other solution without JS - did you just add this?
My only small suggestion would be to make the focus styles a bit easier to see, perhaps a bit thicker –using
outline-offset
with a small value can also help making it look nice. But this is really a small point!Lovely job!! 👍
Cheers 👋
Dave
PS If you were concerned about the "FAQ" you could perhaps try
aria-label
, I'd need to check but I think this will stop readers accessing the content and read the content of the label, so you could tryaria-label="frequently asked questions"
- I'd need to test this to be sure though.Marked as helpful - @EAguayodev
Your finished challenge looks good! Got a question, how were you able to make your panel transitions smooth when a user clicks on them to open them? I did this challenge a while ago and mine jumps up and down weirdly when I click on mine. Heres my live link https://frontendmentor-faq-accordian-page-ax6ky8byj-ericaguayo90.vercel.app/. Overall, very impressive!
Marked as helpful - @Sloth247
It looks awesome! I like your banner on Github too. I also tried this challenge a while ago and could not close the panels by only HTML and CSS (without JS). I appreciate if you give me a feedback on mine too!
Marked as helpful - @pccipri
Hey, just took a look over your solution, and I gotta say it looks awesome(although keep in mind that I am a beginner as well).So if u can give me any tips on well anything :) but especially responsiveness and if u have any tips on image positioning I would appreciate that as well. Anyway as for your question about the text color I think it's used on well, pretty much all the text. My solution - this is the link to my solution
Marked as helpful - @mathiconh
Hey, nice challenge, looks awesome, just a comment. The shadow svg, is positioned above the woman svg. that is resolved with z-index: 2 in shadow, z-index: 1 in woman. Cheers.
Join 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