Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accordion Component Standardization #1407

Closed
5 tasks done
RobertaFricker opened this issue Apr 15, 2021 · 19 comments · Fixed by #2208
Closed
5 tasks done

Accordion Component Standardization #1407

RobertaFricker opened this issue Apr 15, 2021 · 19 comments · Fixed by #2208
Assignees
Labels
Complexity: Large P-Feature: Toolkit https://www.hackforla.org/toolkit/ role: front end Tasks for front end developers size: missing To Update ! No update has been provided UAT: has visuals

Comments

@RobertaFricker
Copy link
Member

RobertaFricker commented Apr 15, 2021

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 the pages/getting-started.html and guide-pages/2FA.html via 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:
image

image

@RobertaFricker RobertaFricker changed the title guide-page for 2FA doesn't resize correctly in FAQ section at over 958 in responsive mode hackforla/guide-pages/2FA site FAQ line/arrow resizes incorretly over 958 in responsive mode Apr 15, 2021
@RobertaFricker RobertaFricker changed the title hackforla/guide-pages/2FA site FAQ line/arrow resizes incorretly over 958 in responsive mode hackforla/guide-pages/2FA site FAQ line/arrow resizes incorrectly over 958 in responsive mode Apr 15, 2021
@RobertaFricker RobertaFricker changed the title hackforla/guide-pages/2FA site FAQ line/arrow resizes incorrectly over 958 in responsive mode hackforla/guide-pages/2FA site FAQ section line/arrow resizing incorrectly Apr 15, 2021
@akibrhast

This comment has been minimized.

@akibrhast

This comment has been minimized.

@akibrhast

This comment has been minimized.

@akibrhast

This comment has been minimized.

@sayalikotkar sayalikotkar added the Feature Missing This label means that the issue needs to be linked to a precise feature label. label Jun 20, 2021
@Sihemgourou Sihemgourou added P-Feature: Toolkit https://www.hackforla.org/toolkit/ and removed Feature Missing This label means that the issue needs to be linked to a precise feature label. labels Jun 20, 2021
@ExperimentsInHonesty

This comment has been minimized.

@averdin2

This comment has been minimized.

@averdin2 averdin2 changed the title hackforla/guide-pages/2FA site FAQ section line/arrow resizing incorrectly Accordion Component Standardization Aug 10, 2021
@averdin2

This comment has been minimized.

@sheltoG

This comment has been minimized.

@JackRichman

This comment has been minimized.

@abuna1985
Copy link
Member

abuna1985 commented Aug 27, 2021

@hackforla/website-merge @JackRichman and I researched Action item #5 (change to pink accordion arrow). The style guide show #fa114f ($color-red) and not pink. It is currently set to #fA114F. I think this may have been a typo/misunderstanding. Recommendation: I think we can disregard this request since the color matches the style guide.

Please see the screenshot below of the Style Guide section of the Figma file:

Click here to see the current Figma Style guide for dropdown arrows

The current color provided within the style guide is #fa114f ($color-red) which is the what it is currently

@abuna1985 abuna1985 added this to the 08. Team workflow milestone Aug 27, 2021
@Aveline-art

This comment has been minimized.

@abuna1985
Copy link
Member

@Aveline-art but its requesting the primary button color...which is red. Which it is.

@abuna1985
Copy link
Member

abuna1985 commented Aug 27, 2021

@Aveline-art And the photo I provided above was from the style guide link (Figma design system file) they provided in that issue comment. The color provided is red, not pink.

@Aveline-art

This comment has been minimized.

@github-actions github-actions bot added the To Update ! No update has been provided label Aug 27, 2021
@github-actions

This comment was marked as outdated.

@ExperimentsInHonesty
Copy link
Member

@abuna1985 I recommend removing the last item from this issue, please tell me if you agree.

  • Fix the incorrect sizing of the accordion that appears on the 2FA page.
    Because Alyssa is almost done with the design to turn all guide pages into being markdown driven and we will be moving this helpfile to that format.

@alyssabenipayo please review the FAQ accordion shown on the 2FA page and on the getting started page, as we may want to incorporate those into the Guide template. However on the 2FA it seems unwarranted and I could probably put the info into the regular format of the guide.

@abuna1985
Copy link
Member

abuna1985 commented Aug 29, 2021

@ExperimentsInHonesty I think we can either:

  1. move the last item into a separate issue.
  2. Remove it entirely from the 2FA page

It seems like the accordion for the Getting Started Page is nested in a card with 30px of padding. The accordion for 2FA is nested in a section-container class that has a left/right padding of 187px and top/bottom padding of 75px. The CSS for the accordion within 2FA needs to account for this. Also, the Figma design of 2FA shows the border under the text instead of under the title.
Figma Design- Guide Pages - 2FA

Click to see screenshot of the expanded accordion within 2FA Guide pages

@github-actions github-actions bot added To Update ! No update has been provided and removed To Update ! No update has been provided labels Sep 3, 2021
@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Complexity: Large P-Feature: Toolkit https://www.hackforla.org/toolkit/ role: front end Tasks for front end developers size: missing To Update ! No update has been provided UAT: has visuals
Projects
Development

Successfully merging a pull request may close this issue.