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

Change inform-icon to fa-info-circle #18001

Merged
merged 1 commit into from
Aug 1, 2020

Conversation

mattwire
Copy link
Contributor

Overview

Replace <div class=icon inform-icon> with fontawesome fa-icon-circle using icon helper. If we're ok with this I'll add a mapping to the docs here: https://docs.civicrm.org/dev/en/latest/framework/ui/#older-icon-system

Before

Using legacy icon
eg.
image

After

Using standard function and current icon.
eg.
image

Technical Details

Per UI discussions and call. This is changed in all templates using find/replace.

Comments

@colemanw @demeritcowboy @agh @vingle @totten This is an example of a find/replace (similar to and built on the work that @agh1 did) to update some of our UI in one go.

@civibot
Copy link

civibot bot commented Jul 30, 2020

(Standard links)

@homotechsual
Copy link
Contributor

I'm good with the idea behind this!

@vingle
Copy link
Contributor

vingle commented Jul 30, 2020

Me too.

@agh1
Copy link
Contributor

agh1 commented Jul 30, 2020 via email

@mattwire
Copy link
Contributor Author

@agh1 That sounds fine - so {icon icon="fa-info-circle"}{/icon} would be ok?

@homotechsual
Copy link
Contributor

homotechsual commented Jul 30, 2020

This is great.  My only concern is that you are adding "Info" for all of the icons.  The result is that a screen reader would say, "Info there are no records selected," "Info warning: delete will remove this permission," and so forth. The "Info" might be more of a distraction than a help.  Meanwhile, I'm not sure if it needs to be a hover title for the icon either. It's perfectly acceptable for an icon to have no title or screen reader text if it's just there for decoration.  I'd suggest dropping the "Info" altogether. Alternatively, if you think it's important to have, you might set it off with brackets or a colon: something so that a screen reader could understand it's distinct from the text that follows. Jul 30, 2020 7:20:50 AM Nicol notifications@github.com:

Me too. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub[#18001 (comment)], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AAM2XR57TMI4ZWFTUMMUQ53R6FJRDANCNFSM4PNP4PCA]. [https://github.com/notifications/beacon/AAM2XRZGOJN426TFTPJYBPDR6FJRDA5CNFSM4PNP4PCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOE63QSII.gif]

The crmIcon function hides the text anyway right? https://github.com/civicrm/civicrm-core/blob/79da31cdb657bbcffac852d18251636f2b49014f/CRM/Core/Page.php - it wraps in sr-only which screen readers should understand.

I think the text is semantically important and the icons aren't purely decorative.

@agh1
Copy link
Contributor

agh1 commented Jul 30, 2020 via email

@agh1
Copy link
Contributor

agh1 commented Jul 30, 2020

Jenkins retest this please.

@eileenmcnaughton
Copy link
Contributor

eileenmcnaughton commented Jul 31, 2020

@mattwire I don't disagree with the ok-without-test - but I try not to add that label to my own PRs because I believe that the label represents the assessment of another merger & we can't self-assess that

@eileenmcnaughton
Copy link
Contributor

@agh1 @MikeyMJCO I think if the 2 of you reach agreement that this PR is mergeable then I would be happy to merge it

@mattwire
Copy link
Contributor Author

@agh1 @MikeyMJCO I've updated to remove the "Info" text. I only added it because that's how existing examples seemed to have it. But for this icon I agree it doesn't bring anything useful. If the screenreader reads the text then it's already got your attention!

@mattwire
Copy link
Contributor Author

Docs PR: civicrm/civicrm-dev-docs#839

@eileenmcnaughton
Copy link
Contributor

@agh1 - is this good to merge from your pov?

@agh1
Copy link
Contributor

agh1 commented Aug 1, 2020 via email

@eileenmcnaughton eileenmcnaughton merged commit f877625 into civicrm:master Aug 1, 2020
@eileenmcnaughton
Copy link
Contributor

thanks @MikeyMJCO @agh1 @mattwire

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.

6 participants