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

feat(icon): make icons accessible #51

Merged
merged 4 commits into from
Sep 1, 2018

Conversation

manniL
Copy link
Member

@manniL manniL commented Mar 22, 2018

With this PR, icons can be accessed through Vue.$icons (or custom property name).

Use case:
Sometimes you want to use smaller versions of your original logo on your page. Instead of adding another image to assets, you can now get URL and size directly through Vue.

Resolves #46

@manniL
Copy link
Member Author

manniL commented Apr 25, 2018

Ping @pi0

@pi0
Copy link
Member

pi0 commented Aug 24, 2018

Hey @manniL. Sorry for missing this PR. Actually, this would be a nice feature but it's somehow out of the PWA/icon's scope. I mean we can make this plugin to inject $icon with a more convenient Interface like <img :src="$icon('default', 256)> (and in future abilities like adding more icon assets)

@manniL
Copy link
Member Author

manniL commented Aug 24, 2018

@pi0 No problem at all! ☺️

Will update the PR with your suggestion as soon as I can!

@pi0 pi0 changed the base branch from master to develop August 24, 2018 10:05
@pi0 pi0 changed the title Make icons accessible feat(icon): make icons accessible Aug 24, 2018
@pi0 pi0 added the WIP Work In Progress label Aug 24, 2018
@manniL
Copy link
Member Author

manniL commented Sep 1, 2018

@pi0 Updated!

@manniL manniL removed the WIP Work In Progress label Sep 1, 2018
@manniL manniL requested review from pi0 and galvez September 1, 2018 22:20
@galvez
Copy link
Contributor

galvez commented Sep 1, 2018

LGTM @manniL are tests passing on your side?

@manniL
Copy link
Member Author

manniL commented Sep 1, 2018

@galvez Yup. Removed a forgotten console.log, now everything should be fine ☺️

@galvez galvez merged commit 92bccd3 into nuxt-community:develop Sep 1, 2018
@manniL manniL deleted the feature-accessible-icons branch September 1, 2018 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants