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

fix: fix icon color #210

Merged
merged 1 commit into from
Oct 24, 2023
Merged

fix: fix icon color #210

merged 1 commit into from
Oct 24, 2023

Conversation

justinhynes
Copy link
Contributor

[APER-2969]

This PR removes a piece of custom CSS we wrote to invert colors of icons under certain circumstances. This was originally added to resolve a problem with Paragon that has since been resolved (and is now the source of the icon color problem).

Problem today on Stage (with edX.org branding):
image

After changes (with edX.org branding):
image

After changes (with Open edX branding):
image

[APER-2969]

This PR removes a piece of custom CSS we wrote to invert colors of icons under certain circumstances. This was originally added to resolve a problem with Paragon that has since been resolved (and is now the source of the icon color problem).
@codecov
Copy link

codecov bot commented Oct 24, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (da7f2fd) 70.22% compared to head (d46a05a) 70.22%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #210   +/-   ##
=======================================
  Coverage   70.22%   70.22%           
=======================================
  Files          27       27           
  Lines         403      403           
  Branches       85       85           
=======================================
  Hits          283      283           
  Misses        119      119           
  Partials        1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -0,0 +1,31 @@
module.exports = {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Adding example module.config.js file to the repo as it has some helpful information on overriding modules for local development.

Comment on lines -14 to -22

.send-record-button span.btn-icon-before {
filter: invert(100%) sepia(97%) saturate(0%) hue-rotate(70deg) brightness(104%) contrast(105%);
}

.copy-record-button:hover span.btn-icon-before,
.copy-record-button:focus span.btn-icon-before {
filter: invert(100%) sepia(97%) saturate(0%) hue-rotate(70deg) brightness(104%) contrast(105%);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the change that fixes the problem, the rest is my IDE auto-removing whitespaces.

Copy link
Member

@MaxFrank13 MaxFrank13 left a comment

Choose a reason for hiding this comment

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

I love that you included screenshots of the Open edX styles as well!

@justinhynes justinhynes merged commit db7c493 into master Oct 24, 2023
7 checks passed
@justinhynes justinhynes deleted the jhynes/APER-2969_fix-icon-color branch October 24, 2023 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants