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

Design System Audit: Swap colors with color variables: Reds #2112

Closed
12 of 13 tasks
Tracked by #2114
Aveline-art opened this issue Aug 13, 2021 · 11 comments · Fixed by #3329 or #3730
Closed
12 of 13 tasks
Tracked by #2114

Design System Audit: Swap colors with color variables: Reds #2112

Aveline-art opened this issue Aug 13, 2021 · 11 comments · Fixed by #3329 or #3730
Assignees
Labels
Complexity: Medium Feature: Design system Feature: Refactor CSS Page is working fine - CSS needs changes to become consistent with other pages role: front end Tasks for front end developers size: 1pt Can be done in 4-6 hours Status: Updated No blockers and update is ready for review

Comments

@Aveline-art
Copy link
Member

Aveline-art commented Aug 13, 2021

Overview

As a developer, hard-coding colors only makes things difficult when colors change. For this only change the red colors so we can use the color variables.

Action Items

  • Refer to /_sass/variables/_colors.scss for the current color variables (reds)
  • Identify an instance of the hard-coded color
    • Check to see what that code impacts on the site.
    • Switch out the hard-coded color with the appropriate variable
    • Check to see if it broke anything. Some changes might break the website
    • If the color doesn't stay the same or you get any other kind of error, you can try using the classes from this file website/_sass/elements/_color-styles.scss
      • Add a comment to this issue with any instances of needing to use the styles instead of colors.scss
  • If a color variable is unused,
  • If both the color variable itself and the color class are not used for a specific color,
    • Delete the color variable from this file: _sass/variables/_colors.scss
    • Delete its corresponding color class from this file: /_sass/elements/_color-styles.scss
  • Release dependency on Design System Audit: Audit for hardcoded colors #2114, if conditions are met

Resources/Instructions

  • // Reds
    $color-red: #fa114f;
    $color-firebrick: #D7261B;
    $color-mediumvioletred: #D11D69;
    $color-deeppink: #FA207C;
    $color-orangered: #ee412a;
    $color-salmon: #ffadad;
Click here to see a visual example of search/replace for color variables within VS code
Search: hex color
Replace: color variable
files to include: ./
files to exclude: *.svg, _site, _colors.scss
Click on the `Replace All` button (shortcut: Ctrl+Alt+Enter) Click `Ok` to confirm replace

If the task seems tedious, this might smooth things along if your native IDE is VSCode. Other IDEs might also have similiar functionality.
Advanced find and replace options for VSCode

@github-actions github-actions bot added Feature Missing This label means that the issue needs to be linked to a precise feature label. role missing size: missing labels Aug 13, 2021
@Aveline-art

This comment was marked as outdated.

@Aveline-art Aveline-art added Feature: Refactor JS / Liquid Page is working fine - JS / Liquid needs changes to become consistent with other pages role: front end Tasks for front end developers Complexity: Medium and removed Feature Missing This label means that the issue needs to be linked to a precise feature label. role missing size: missing labels Aug 13, 2021
@Aveline-art Aveline-art changed the title Design System Audit: Swap colors with color variables: Reds, Oranges, Yellows, Greens Design System Audit: Swap colors with color variables: reds, oranges, yellows, greens Aug 13, 2021
@ExperimentsInHonesty

This comment has been minimized.

@Aveline-art

This comment has been minimized.

@sheltoG

This comment has been minimized.

@abuna1985 abuna1985 changed the title Design System Audit: Swap colors with color variables: reds, oranges, yellows, greens Design System Audit: Swap colors with color variables: Reds Aug 29, 2021
@abuna1985

This comment has been minimized.

@ExperimentsInHonesty ExperimentsInHonesty added this to the y. Technical debt milestone Sep 5, 2021
@abuna1985 abuna1985 added Feature: Design system Feature: Refactor CSS Page is working fine - CSS needs changes to become consistent with other pages and removed Feature: Refactor JS / Liquid Page is working fine - JS / Liquid needs changes to become consistent with other pages labels Sep 7, 2021
@JessicaLucindaCheng JessicaLucindaCheng added the size: 1pt Can be done in 4-6 hours label Mar 8, 2022
@clayton1111 clayton1111 self-assigned this Jul 1, 2022
@clayton1111

This comment was marked as outdated.

@github-actions github-actions bot added the Status: Updated No blockers and update is ready for review label Jul 8, 2022
@ExperimentsInHonesty
Copy link
Member

This issue got reopened, because we did an manual check and found that on one color alone there were at least 5 changeable instances that did not get changed.

  • $color-red: #fa114f;
    • _sass/components/_guides.scss
      • text-decoration-color: #fa114f;
      • color: #fa114f;
    • _layouts/guides.html
      • ref="https://www.google.com/"style="color: #fa114f;" >
    • _guide-pages/how-to-set-reminders-in-slack.md
      • color: #FA114F;
    • pages/guides.html
      • href="https://www.google.com/"style="color: #fa114f;" >
      • color: #FA114F;

@esantiano esantiano self-assigned this Nov 17, 2022
@github-actions

This comment was marked as outdated.

@esantiano
Copy link
Member

ETA: 11/18/22
Availability: 3 Hours

@ExperimentsInHonesty
Copy link
Member

There is activity on the PR as of 6 days ago

@esantiano
Copy link
Member

esantiano commented Dec 4, 2022

Progress: changed all changeable instances of #fa114f to "$color-red". Checking pages for instances of "$color-salmon: #ffadad" and "rgb(250, 17, 79)"
Blockers: Recently started a new job.
Availability: 3 Hours
ETA: 12/03/2022

@ExperimentsInHonesty ExperimentsInHonesty added the ready for dev lead Issues that tech leads or merge team members need to follow up on label Mar 5, 2023
@ExperimentsInHonesty ExperimentsInHonesty removed the ready for dev lead Issues that tech leads or merge team members need to follow up on label Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Complexity: Medium Feature: Design system Feature: Refactor CSS Page is working fine - CSS needs changes to become consistent with other pages role: front end Tasks for front end developers size: 1pt Can be done in 4-6 hours Status: Updated No blockers and update is ready for review
Projects
7 participants