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

Replace Icomoon & font-awesome with Google Material Fonts #2093

Merged
merged 1 commit into from
Feb 9, 2021

Conversation

arslanashraf7
Copy link
Contributor

@arslanashraf7 arslanashraf7 commented Jan 28, 2021

Pre-Flight checklist

  • Screenshots and design review for any changes that affect layout or styling

    • Desktop screenshots
    • Mobile width screenshots
  • Testing

    • Code is tested
    • Changes have been manually tested

What are the relevant tickets?

#2065

What's this PR do?

Replaces the usage of Icomoon & font-awesome with Google Material Icons.

How should this be manually tested?

Need to verify the icons and their usage is intact.
Need to verify that there is not a lot of difference between the look & feel of the Icons used through Google Material Font

Any background context you want to provide?

In past we were using icons from 3 different sources Google Material, Icomoon & Font-Awesome. Now, While we are in the process of improving the performance of the website so we decided to use the icons just from Google Material Fonts which will provide use some performance improvement since we'll have to load just Google Font reducing the page load time taken by Icomoon & Font-Awesome.

Screenshots (if appropriate)

  1. Notification Cancel Icon
    Old

old_notification_cancel

New
new_notification_cancel

  1. Course Carousel
    Old

old_course_carousel_icons

New
new_course_carousel_icons

  1. Testimonials Carousel
    Old

old_testimonial_carousel_icons

New
new_testimonial_carousel_icons

  1. Catalog Details
    Old

old_catalog_detail_icon

New
new_catalog_detail_icons

  1. Testimonials Dialog Cancel
    Old

old_testimonial_cancel

New
new_testimonial_cancel

  1. Back to top
    Old

old_back_to_top_button

New
new_back_to_top_icon

Mobile Screenshots

  1. Notification's Cancel Button
    Old

old_notification_cancel_mobile

New
new_notification_cancel_mobile

  1. Course Carousel
    Old

old_course_carousel_mobile

New
new_course_carousel_mobile

  1. Testimonials Carousel
    Old

old_testimonials_mobile

New
new_testimonials_carousel_mobile

  1. Catalog Details
    Old

old_catalog_detail_mobile

New
new_catalog_detail_mobile

  1. Testimonial Dialog Cancel
    Old

old_testimonial_cancel_mobile

New
new_testimonial_cancel_mobile

  1. Back to Top Button
    Old

old_back_to_top_mobile

New
new_back_to_top_mobile

@odlbot odlbot temporarily deployed to xpro-ci-pr-2093 January 28, 2021 13:38 Inactive
@codecov-io
Copy link

codecov-io commented Jan 28, 2021

Codecov Report

Merging #2093 (8dc1c5b) into master (82d57b0) will decrease coverage by 4.58%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2093      +/-   ##
==========================================
- Coverage   88.00%   83.41%   -4.59%     
==========================================
  Files         328      171     -157     
  Lines       14767     9833    -4934     
  Branches     1031     1031              
==========================================
- Hits        12995     8202    -4793     
+ Misses       1533     1392     -141     
  Partials      239      239              
Impacted Files Coverage Δ
static/js/components/input/ProductSelector.js
static/js/lib/urls_test.js
static/js/reducers/notifications_test.js
static/js/factories/course.js
static/js/components/Markdown.js
static/js/reducers/notifications.js
...s/containers/pages/profile/EditProfilePage_test.js
static/js/containers/pages/login/LoginPages.js
static/js/containers/pages/profile/ProfilePages.js
...ainers/pages/login/LoginForgotPasswordPage_test.js
... and 146 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 82d57b0...8dc1c5b. Read the comment docs.

@odlbot odlbot temporarily deployed to xpro-ci-pr-2093 January 28, 2021 14:48 Inactive
@odlbot odlbot temporarily deployed to xpro-ci-pr-2093 January 28, 2021 15:17 Inactive
@odlbot odlbot temporarily deployed to xpro-ci-pr-2093 January 29, 2021 07:02 Inactive
@odlbot odlbot temporarily deployed to xpro-ci-pr-2093 January 29, 2021 07:32 Inactive
@odlbot odlbot temporarily deployed to xpro-ci-pr-2093 January 29, 2021 10:00 Inactive
@odlbot odlbot temporarily deployed to xpro-ci-pr-2093 January 29, 2021 10:34 Inactive
@odlbot odlbot temporarily deployed to xpro-ci-pr-2093 January 29, 2021 10:45 Inactive
@arslanashraf7 arslanashraf7 force-pushed the arslan/use-material-font branch from cea8645 to c1e467b Compare January 29, 2021 10:46
@odlbot odlbot temporarily deployed to xpro-ci-pr-2093 January 29, 2021 10:46 Inactive
@odlbot odlbot temporarily deployed to xpro-ci-pr-2093 January 29, 2021 12:19 Inactive
@arslanashraf7 arslanashraf7 force-pushed the arslan/use-material-font branch from 4e4729a to 115e4d4 Compare January 29, 2021 12:19
@odlbot odlbot temporarily deployed to xpro-ci-pr-2093 January 29, 2021 12:20 Inactive
@odlbot odlbot temporarily deployed to xpro-ci-pr-2093 January 29, 2021 12:28 Inactive
@arslanashraf7
Copy link
Contributor Author

@briangrossman & @abdulkdawson , We might need you to review this PR where we are basically replacing all the Font-Awesome and Icomoon Icons with Google Material Fonts.

I've mentioned the reason for doing it in the PR description's Background Context part.

Please have a look and let me know if you approve of these changes.

@briangrossman
Copy link
Contributor

@arslanashraf7 Thank you for the detailed list of changes. All of the changes you show above look good to me.

Looks like we're switching from filled-in arrows and not-filled-in close buttons to not-filled-in arrows and filled-in close buttons. :) That's fine.

And the replacement >'s look fine, too.

This is all good from a look and feel perspective.

@arslanashraf7
Copy link
Contributor Author

@arslanashraf7 Thank you for the detailed list of changes. All of the changes you show above look good to me.

Looks like we're switching from filled-in arrows and not-filled-in close buttons to not-filled-in arrows and filled-in close buttons. :) That's fine.

And the replacement >'s look fine, too.

This is all good from a look and feel perspective.

@briangrossman Thanks for reviewing the designs, Also your perceptions are right on moving towards basic outline icons. Now, I'll just wait on @gsidebo's review to take this change into master.

@gsidebo gsidebo self-assigned this Feb 2, 2021
Copy link
Contributor

@gsidebo gsidebo left a comment

Choose a reason for hiding this comment

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

This looks great! Just the one comment

@@ -22,7 +22,7 @@ const shouldShowLoginSignup = location =>
)

const TopAppBar = ({ currentUser, location }: Props) => (
<header className="header-holder">
<header className="header-holder" style={{ height: 98 }}>
Copy link
Contributor

Choose a reason for hiding this comment

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

The purpose of setting a height on the header is to have an element of the correct height occupying the space before the header-related Javascript is loaded. Setting the height here doesn't help with that. You need to add this height to an element in the HTML template

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, I've updated it, I've moved this to HTML templates where TopAppBar was used and where it was possible to set fixed height without effecting responsiveness. It definitely saved us some layout shifts now.

@@ -5,7 +5,7 @@
{% block title %}Catalog | {{ site_name }}{% endblock %}

{% block headercontent %}
<div id="header"></div>
<div id="header" style="height: 98px"></div>
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm pretty sure we can just add this to the #header selector in static/scss/detail/header.scss instead of inlining it in all of these files

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like a great suggestion, I'll change/test it in CSS and will update the PR shortly.

Copy link
Contributor

@gsidebo gsidebo left a comment

Choose a reason for hiding this comment

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

Looks great! 👍

@arslanashraf7
Copy link
Contributor Author

Looks great! 👍

@gsidebo Thanks for the quick review.

@arslanashraf7 arslanashraf7 force-pushed the arslan/use-material-font branch from b588f3b to 94eadc3 Compare February 9, 2021 17:43
@arslanashraf7 arslanashraf7 force-pushed the arslan/use-material-font branch from 94eadc3 to c97afab Compare February 9, 2021 17:44
@arslanashraf7 arslanashraf7 merged commit 8e2f561 into master Feb 9, 2021
@arslanashraf7 arslanashraf7 deleted the arslan/use-material-font branch February 9, 2021 18:00
@HamzaIbnFarooq HamzaIbnFarooq mentioned this pull request Feb 10, 2021
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants