-
Notifications
You must be signed in to change notification settings - Fork 3
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
WIP: Include Font Awesome and Material Icons #7
base: master
Are you sure you want to change the base?
WIP: Include Font Awesome and Material Icons #7
Conversation
Does this work if you remove:
from the I'd also suggest waiting to merge this until #6 is merged because it changes the API, so rebase off that. And could we leave the whitespace around |
The icons disappear when I remove the code above. I changed my PR to WIP, to wait for your changed being merged first, and will fix the spacing! |
md: { | ||
styleUrl: "https://fonts.googleapis.com/icon?family=Material+Icons", | ||
classes: "material-icons md-70", | ||
}, | ||
fa: { | ||
styleUrl: | ||
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css", | ||
classes: "fa fa-70", | ||
"https://use.fontawesome.com/releases/v5.1.0/css/all.css", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's stick with version 4.7.0 if at all possible, at least until we can demonstrate working on version. The reason for this is status quo production MyUW is using version 4.7.0, so if this also supports 4.7.0, it'll be more interchangable with what we're already running and the icons reference in the current production data.
Switching Font Awesome versions is going to entail auditing/updating those icon usages to ensure they're using icon aliases that will work moving forward and might couple adopting this Web Component with making corresponding data changes.
So. Not never on the Font Awesome upgrade, but not in the same transaction as flopping over to this Web Component, is my suggestion.
text="Launch app" | ||
href="https://www.google.com" | ||
></myuw-card-footer> | ||
<myuw-card-header slot="myuw-card-header" title="Icon Link"></myuw-card-header> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't necessarily need to have an opinion about code style and white space.
I do suggest that if we're going to do automated reformatting of code that's not otherwise being changed,
- it can help to do it in separate commits so it's clearer what's a substantive change and what's a style change, and
- it can help to codify what style rules and automation we're using. What tools or plugins, configured how? Might be something to document in
CONTRIBUTING.md
, might even be possible to include tool configuration metadata in this repository.
In other contexts some MyUW projects have tried to "adopt Google style". This has some advantages in tooling support, being three words long, applying across a variety of languages, consisting entirely of a reference to external style so there's less surface to internally argue about and customize style, etc.
Ah whoops, I grabbed too many lines for you to remove so yeah, that definitely wouldn't work! Does it work if you remove only the:
line? That line embeds the styles in a |
V 1.3.2
Updated
Fixed
Before:
After: