Skip to content

ShalomiAhavah/FAQ-accordion-fem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 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

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • Flexbox
  • Mobile-first workflow
  • Less Css compiler
  • Git

What I learned

  • I enjoyed learning more about css selectors. I will continue using css over javascript any day
details[open] .icon {
    background-image: url(/assets/images/icon-minus.svg); 
}

Continued development

  • JavaScript. I absolutely suck at it.

Author

I've just completed a front-end coding challenge from @frontendmentor! 🎉

You can see my solution here: https://www.frontendmentor.io/solutions/faq-accordion-component-html5-css3-no-javascript-JAwH5pR7aX

Any suggestions on how I can improve are welcome!