Skip to content

Design System Audit: Audit for hardcoded colors#4783

Merged
roslynwythe merged 2 commits intohackforla:gh-pagesfrom
AHP15:audit-hardcoded-2114
Jun 14, 2023
Merged

Design System Audit: Audit for hardcoded colors#4783
roslynwythe merged 2 commits intohackforla:gh-pagesfrom
AHP15:audit-hardcoded-2114

Conversation

@AHP15
Copy link
Contributor

@AHP15 AHP15 commented Jun 5, 2023

Fixes #2114

What changes did you make and why did you make them ?

  • I find all the hardcoded color value and put a note for them in the issue associated with this PR
  • I changed the following color values:
    • background: #F6F6F6; to background: $color-whitesmoke; in file: _sass/components/_project-page.scss
    • color: #030D2D; to color: $color-darkblue; in file _sass/components/_donate-components.scss
    • Also I change colors from hard-coded values to variable in the following files: _sass/components/_home.scss, _sass/components/_privacy-policy.scss, _sass/components/_projects-page.scss

@github-actions
Copy link

github-actions bot commented Jun 5, 2023

Want to review this pull request? Take a look at this documentation for a step by step guide!

From your project repository, check out a new branch and test the changes.

git checkout -b Abdessittir-audit-hardcoded-2114 gh-pages
git pull https://github.com/Abdessittir/website.git audit-hardcoded-2114

@github-actions github-actions bot added role: front end Tasks for front end developers Feature: Refactor CSS Page is working fine - CSS needs changes to become consistent with other pages Complexity: Small Take this type of issues after the successful merge of your second good first issue size: 1pt Can be done in 4-6 hours labels Jun 5, 2023
@93Belen 93Belen self-requested a review June 6, 2023 14:07
@93Belen
Copy link
Member

93Belen commented Jun 6, 2023

Availability: Tuesday and Thursday morning. Sunday all day
ETA: Thursday by 11am

Copy link
Member

@93Belen 93Belen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey really nice job! This Issue is labelled as a small issue but it looks medium to me. Well done!
I found a few things that need changes and a suggestion.

  • Just a suggestion: This color #2114 (comment) you said that is a type of white. It looks more like a green than a white. If you want, a little trick to name variables (since this is a tedious job) you can ask chat GPT. I asked for a name for that color and it suggested "Pale mint" which is pretty accurate haha. This would be an easy way to find more descriptive names for the variable names that contain numbers, like color-darkblue-2
  • This one: #2114 (comment) already has a variable called color-darkblue
  • In this one #2114 (comment) this color : rgb(187, 255, 187) in HEX is #BBFFBB which is hold by the variable called color-lightgreen
  • In this one #2114 (comment) that shorthand represents the HEX color #333333 that is hold by the variable called color-black
  • This one #2114 (comment) has a typo in the location. There is a score where there should be an underscore _sass/components/-credit-items.scss should be _sass/components/_credit-items.scss
  • In this one #2114 (comment) the color in line 257 is hold by the variable color-pink
  • In this one #2114 (comment) you mention line 265 but you don't need to since you changed it for a variable.
  • I didn't see any comment mentioning _saas/components/_guides.scss lines 52 and 225

@AHP15
Copy link
Contributor Author

AHP15 commented Jun 7, 2023

Hi @93Belen, Thanks for the review!
I made the required changes

@AHP15 AHP15 requested a review from 93Belen June 7, 2023 08:37
@LOSjr4 LOSjr4 self-requested a review June 7, 2023 16:48
Copy link
Member

@LOSjr4 LOSjr4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Abdessittir The color names you labeled are all correct according to previous names that were used for the hardcodes referenced in the dependency documentations. So I approve what what done so far.
After browsing the keyword "color" in VScode, I was wondering if some of these other hardcodes should also be changed? Correct me if I'm wrong. I'm not actually sure.
image
image

image
image

image

image
image

Copy link
Member

@93Belen 93Belen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job! You addressed all my charges requests! Now you just need to update the PR description to match the changes you did. ☺️

@AHP15 AHP15 requested a review from 93Belen June 12, 2023 08:35
@AHP15
Copy link
Contributor Author

AHP15 commented Jun 12, 2023

Hi @93Belen thanks, I just updated my pull request description

@AHP15
Copy link
Contributor Author

AHP15 commented Jun 12, 2023

@LOSjr4 Thanks for the review if you take a look at the #4783 issue you will see that I mentioned all of those colors in comments and suggested names for them as the issue requires

Copy link
Member

@93Belen 93Belen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the update!

Copy link
Member

@LOSjr4 LOSjr4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @Abdessittir for clarifying my question and adding more details in your description.

@roslynwythe roslynwythe merged commit 6d33e6c into hackforla:gh-pages Jun 14, 2023
blulady pushed a commit to blulady/website_old that referenced this pull request Jun 18, 2023
* Change hardcoded value to a variable

* Change color values to color variables
ronaldpaek pushed a commit to ronaldpaek/website that referenced this pull request Jun 28, 2023
* Change hardcoded value to a variable

* Change color values to color variables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complexity: Small Take this type of issues after the successful merge of your second good first issue 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Design System Audit: Audit for hardcoded colors

4 participants