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

Add SVG icons #465

Merged
merged 1 commit into from
Oct 6, 2017
Merged

Add SVG icons #465

merged 1 commit into from
Oct 6, 2017

Conversation

spadgett
Copy link
Member

@spadgett spadgett commented Oct 3, 2017

Use SVG icons when available.

See openshift/origin-web-console#2208
Requires openshift/origin-web-common#213

screen shot 2017-10-03 at 3 03 29 pm

openshift web console 2017-10-03 15-57-53

@spadgett
Copy link
Member Author

spadgett commented Oct 5, 2017

@jeff-phillips-18 PTAL

@@ -1,7 +1,8 @@
<div class="order-service-details">
<div class="order-service-details-top">
<div class="service-icon">
<span class="icon {{$ctrl.imageStream.iconClass}}" aria-hidden="true"></span>
<span ng-if="!$ctrl.imageStream.imageUrl" class="icon {{$ctrl.imageStreamiconClass}}" aria-hidden="true"></span>
<span ng-if="$ctrl.imageStream.imageUrl" class="image"><img ng-src="{{$ctrl.imageStream.imageUrl}}" alt=""></span>
Copy link
Member

Choose a reason for hiding this comment

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

aria-hidden="true"

Copy link
Member Author

Choose a reason for hiding this comment

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

For img elements, I don't think aria-hidden is needed if alt="" is set.

https://www.w3.org/WAI/tutorials/images/decorative/

@jeff-phillips-18
Copy link
Member

Looks good. One question, should there be methods to get the image for a given service instance thus allowing us to show the image in other places in the UI (like the service instance details page)?

@spadgett
Copy link
Member Author

spadgett commented Oct 5, 2017

One question, should there be methods to get the image for a given service instance thus allowing us to show the image in other places in the UI (like the service instance details page)?

Yeah, I know @ncameronbritt had started looking at showing icons generally on the overview. We could pretty easily add them for service instances since there is a clear icon, at least on the details page. @ncameronbritt Opinion?

@spadgett
Copy link
Member Author

spadgett commented Oct 5, 2017

@jeff-phillips-18 Opened #2221 to discuss using the icon elsewhere.

@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Oct 6, 2017
@spadgett spadgett changed the title [WIP] Add SVG icons Add SVG icons Oct 6, 2017
Use color SVG icons instead of font icons when available.

Bumps origin-web-common from 0.0.63 -> 0.0.64 for the
`imageForIconClass` filter.
@spadgett spadgett merged commit fa7ebc9 into openshift:master Oct 6, 2017
@spadgett spadgett deleted the logos branch October 6, 2017 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants