-
-
Notifications
You must be signed in to change notification settings - Fork 847
Description
Overview
As a part of the Dev team's efforts to standardize components throughout the website, we need to standardize the accordion component. The JavaScript code needs to be standardized, and some changes with how the JavaScript manipulates the accordion styles needs to be changed. There are also some style issues with the accordion component that need to be fixed. On the 2FA page on the website, the accordion component in the FAQ section stretches farther than the card in the tablet view range.
Action Items
- Take JavaScript code for the accordion out of getting-started.html and 2FA.html, and move the JavaScript code into the elements folder. The final result should be js code in the following file
/assets/js/elements/accordion.js - Once there is an
assets/js/elements/accordion.js, you need to include it into thepages/getting-started.htmlandguide-pages/2FA.htmlvia the script tag like so.<script src="/assets/js/elements/accordion.js" type="module"></script>. You will place it where the previous<script>containing the accordion logic was. - Move any accordion related style classes from _getting-started-page.scss and 2FA.scss into a new file called _accordion.scss in the elements folder.
- Change the JavaScript code so that it adds a style class called "show" when the accordion is opened, and when closed it removes that class, rather than having the JavaScript code add the styles directly.
-
As per comment Develop Updated Getting Started page #1619 (comment), the accordion arrows need to be made pink in all viewport ranges.
Resources/Instructions
Current uses of accordion on website
https://www.hackforla.org/getting-started
https://www.hackforla.org/guide-pages/2FA
Relevant files
https://github.com/hackforla/website/blob/gh-pages/_guide-pages/2FA.html
https://github.com/hackforla/website/blob/gh-pages/pages/getting-started.html
https://github.com/hackforla/website/blob/gh-pages/_sass/components/guide-pages/2FA.scss
https://github.com/hackforla/website/blob/gh-pages/_sass/components/_getting-started-page.scss
Figma Design 2FA (black border)
Below are screenshots of the behavior of the FAQ section when it's resized above 958 left-right:

Metadata
Metadata
Assignees
Labels
Type
Projects
Status
