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 Color Swap Red #3730

Merged

Conversation

esantiano
Copy link
Member

Fixes #2112

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

  • changed all changeable instances of '#fa114f' to '$color-red'

Screenshots of Proposed Changes Of The Website (if any, please do not screen shot code changes)

Visuals before changes are applied

No visual changes to the website, color variable swap should allow the website to remain the same.

Visuals after changes are applied

No visual changes to the website, color variable swap should allow the website to remain the same.

@github-actions
Copy link

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 esantiano-esantiano-audit-color-swap-red-2112 gh-pages
git pull https://github.com/esantiano/website.git esantiano-audit-color-swap-red-2112

@github-actions github-actions bot added 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 Complexity: Medium Status: Updated No blockers and update is ready for review labels Nov 18, 2022
@t-will-gillis t-will-gillis self-requested a review November 18, 2022 03:41
@t-will-gillis
Copy link
Member

Available: Fri 11/18
ETA: Fri 11/18

@Adastros Adastros self-requested a review November 18, 2022 04:53
@Adastros
Copy link
Member

Availability: 9 - 11 PM 17NOV22, 18NOV22
Review ETA: 11PM 17NOV22

Adastros
Adastros previously approved these changes Nov 18, 2022
Copy link
Member

@Adastros Adastros left a comment

Choose a reason for hiding this comment

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

Good job @esantiano! You successfully changed all of the instances that had a hard coded red color with its equivalent scss variable. The changes also didn't affect the website.

One thing I want to note is that I noticed some files had other hard-coded colors that don't seem to exist in the _colors.scss file. A couple of examples are linked below. It's not within the scope of this issue but it's something I thought I should bring up to see if they should be replaced with a variable too.

style="margin: 0; border: 2px solid #336699; box-sizing: border-box">

@Suman2795 Suman2795 self-requested a review November 18, 2022 12:57
@Suman2795
Copy link
Member

ETA:18/11/2022
Availability: 2 hours

Copy link
Member

@Suman2795 Suman2795 left a comment

Choose a reason for hiding this comment

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

Good work @esantiano ! You made suitable changes in the files as per the comment.

Suman2795
Suman2795 previously approved these changes Nov 18, 2022
t-will-gillis
t-will-gillis previously approved these changes Nov 18, 2022
Copy link
Member

@t-will-gillis t-will-gillis left a comment

Choose a reason for hiding this comment

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

Hi @esantiano - Looks great!

Appears that all references to hard-coded #fa114f (outside of the excluded files) have been changed to $color-red per the issue. As it says in the linked issue #2112, it also looks like references to the other reds (i.e. $color-firebrick, etc.) are to the color variable name and not the hard-coded color and that all are being used.

Copy link
Contributor

@MattPereira MattPereira left a comment

Choose a reason for hiding this comment

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

Hi @esantiano ,

Great job replacing the instances of #fa114f with $color-red ! 👍

However, I wonder if the $color-salmon variable from _colors.scss and the .color-salmon class from _color-styles.scss should be removed since they seem to be unused throughout the code base.

UPDATE

  • rgb(255, 173, 173) matches the $color-salmon #ffadad and is used for the .status-Completed class's background-color property found in _home.scss , _projects-pages.scss, and _projects.scss. Perhaps these 3 instances of rgb(255, 173, 173) should be changed to use the $color-salmon variable?
  • rgb(250, 17, 79) matches $color-red: #fa114f and is used 4 times in the _about.scss file. This could also probably be swapped.

@esantiano
Copy link
Member Author

One thing I want to note is that I noticed some files had other hard-coded colors that don't seem to exist in the _colors.scss file. A couple of examples are linked below. It's not within the scope of this issue but it's something I thought I should bring up to see if they should be replaced with a variable too.

style="margin: 0; border: 2px solid #336699; box-sizing: border-box">

Hi @Adastros

good job catching those instances, its my understanding that these issues will be addressed in the future related to issue #2114.

@esantiano
Copy link
Member Author

esantiano commented Nov 27, 2022

Progress: changed all changeable instances of #fa114f to "$color-red".
Blockers: lines 46-48 in how-to-set-reminders-in-slack.md seem to not be applied to code tags using the change, however this was resolved on Sunday Nov 20th meeting.
Availability: 2 Hours
ETA: 11/26/2022

@esantiano esantiano dismissed stale reviews from t-will-gillis, Suman2795, and Adastros via cacc28f November 27, 2022 01:17
@esantiano
Copy link
Member Author

Hi @MattPereira

* `rgb(255, 173, 173)` matches  the `$color-salmon` `#ffadad`  and is used for the `.status-Completed` class's `background-color` property found in [_home.scss](https://github.com/hackforla/website/blob/gh-pages/_sass/components/_home.scss) , [_projects-pages.scss](https://github.com/hackforla/website/blob/gh-pages/_sass/components/_projects-page.scss), and [_projects.scss](https://github.com/hackforla/website/blob/gh-pages/_sass/components/_projects.scss). Perhaps these 3 instances of `rgb(255, 173, 173)` should be changed to use the `$color-salmon` variable?

I think this might be addressed with a new issue as well.

* `rgb(250, 17, 79)` matches `$color-red:` `#fa114f` and is used 4 times in the [_about.scss](https://github.com/hackforla/website/blob/gh-pages/_sass/components/_about.scss) file. This could also probably be swapped.

After looking at the about.scss I found that the change from #fa114f to $color-red had been incorporated.

@MattPereira
Copy link
Contributor

MattPereira commented Nov 27, 2022

Hey @esantiano ,

@esantiano esantiano force-pushed the esantiano-audit-color-swap-red-2112 branch from ceccfd7 to 78bd70d Compare December 4, 2022 03:12
@esantiano
Copy link
Member Author

Hey @esantiano ,

* I believe [Design System Audit: Swap colors with color variables: Reds #2112](https://github.com/hackforla/website/issues/2112) encapsulates replacing all of the shades of red that are currently hardcoded throughout the codebase including `$color-salmon:` `#ffadad`**See screenshot**![reds](https://user-images.githubusercontent.com/73561520/204117551-4aee8933-cd51-43e7-91e2-ea9a49e9de74.png)

* Instances of `rgb(250, 17, 79)` ( which is equivalent to `#fa114f` ) in _about.scss **See screenshot**![Screenshot from 2022-11-26 19-16-15](https://user-images.githubusercontent.com/73561520/204117603-fe8864d1-a0cb-47c6-9056-5c86461692c7.png)

Hey @MattPereira

Just changed these instances - the changes were applied to the mobile site and haven't affected any of the colors used.

Copy link
Contributor

@MattPereira MattPereira left a comment

Choose a reason for hiding this comment

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

@esantiano good work replacing all remaining hard-coded instances of "reds" with the corresponding color variables ! 👍

@MattPereira MattPereira merged commit 34e1fb8 into hackforla:gh-pages Dec 10, 2022
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
Development

Successfully merging this pull request may close these issues.

Design System Audit: Swap colors with color variables: Reds
5 participants