Skip to content

A Front-end Mentor project to build a FAQ accordion component.

Notifications You must be signed in to change notification settings

GrantWebster/faq-accordion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - FAQ accordion solution

This is a solution to the FAQ accordion challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

The challenge

Users should be able to:

  • Hide/Show the answer to a question when the question is clicked
  • Navigate the questions and hide/show answers using keyboard navigation alone
  • View the optimal layout for the interface depending on their device's screen size
  • See hover and focus states for all interactive elements on the page

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Mobile-first workflow
  • JavaScript

What I learned

This was such a great project to practice Javascript and DOM events, which I needed a refreshed on. I also learnt to use the html

and elements, which are great but it did take some work to figure out the selectors for the js script file.

Useful resources

The MDN page on HTMLDetailsElement: toggle event, was a valuable resource. https://developer.mozilla.org/en-US/docs/Web/API/HTMLDetailsElement/toggle_event

Author

Acknowledgments

Thank you to Front-end Mentor for providing the designs to help in my learning of front-end web development.

About

A Front-end Mentor project to build a FAQ accordion component.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published