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

Default attributes #37

Closed
stephenturvey opened this issue Apr 25, 2019 · 2 comments
Closed

Default attributes #37

stephenturvey opened this issue Apr 25, 2019 · 2 comments

Comments

@stephenturvey
Copy link

I can add default classes in the config, but what about default attributes?

At the moment I'm having to type out the same attributes each time, eg:

@svg('my-icon', 'text-red', ['aria-hidden' => 'true', 'viewBox' => '0 0 24 24'])

@driesvints
Copy link
Member

Yeah, I can definitely see that being useful.

@driesvints
Copy link
Member

I've implemented this here: #115

However, it's not possible to override existing attributes on icons. They should be removed first before new ones are applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants