Skip to content
This repository was archived by the owner on Aug 27, 2018. It is now read-only.

Gridicon: updates the reply icon #187

Merged
merged 1 commit into from
Oct 19, 2017
Merged

Gridicon: updates the reply icon #187

merged 1 commit into from
Oct 19, 2017

Conversation

rodrigoi
Copy link
Contributor

@rodrigoi rodrigoi commented Oct 18, 2017

Fixes #186

Updates the reply icon for consistency with the latest release of gridicons, since we are not using the npm package, but a subset of icons on src/templates/gridicons.jsx

case 'gridicons-reply':

Maybe we should consider using the npm package instead...

To test:

  • run the local environment
  • find a notification of a comment with a reply
  • both the list view and the detail view should show the reply icon pointing to the right.
Before After
screen shot 2017-10-18 at 15 14 57 screen shot 2017-10-18 at 15 12 43
screen shot 2017-10-18 at 15 15 23 screen shot 2017-10-18 at 15 12 54

References:
Automattic/gridicons#255
Automattic/wp-calypso#18891

Copy link
Contributor

@gwwar gwwar left a comment

Choose a reason for hiding this comment

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

Tests well for me, thanks @rodrigoi!

Copy link
Contributor

@kwight kwight left a comment

Choose a reason for hiding this comment

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

Sweet, works great for me too 👍

@kwight
Copy link
Contributor

kwight commented Oct 18, 2017

Maybe we should consider using the npm package instead...

If we're only using a handful (looks like roughly 1/8 of them), and they change fairly rarely, I'd vote for us continuing to save the bits transferred and keep manually patching until it becomes more of an issue.

@dmsnell
Copy link
Member

dmsnell commented Oct 19, 2017

Last time I checked, the gridicons were written in such a way that they were all bundled up together and the npm import was disproportionately huge compared to our needs.

On the other hand, if it's updated, or if we update it, so that it can also create ES modules and we can import only the ones we want and let webpack trim down the bundle then that's a more stable long-term solution

@rodrigoi rodrigoi merged commit ea5cad9 into master Oct 19, 2017
@rodrigoi rodrigoi deleted the fix/updates-reply-icon branch October 19, 2017 15:45
@jancavan
Copy link

I'm still seeing the old icon?

screenshot 2017-10-19 09 44 03

@rodrigoi
Copy link
Contributor Author

I'm still seeing the old icon?

this hasn't been deployed yet. Will let you know when it is 😉

@kwight
Copy link
Contributor

kwight commented Oct 19, 2017

@jancavan This is in production now 👍

@jancavan
Copy link

@kwight @rodrigoi Looks good, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants