Replies: 1 comment 5 replies
-
If we do this one, could we just recommend the use of named parameters? So: $this->getIconSvg('heart', role: 'button');Alternatively turn the second argument into an option array, but I think that's pretty similar to named parameters in the end, but without native type support. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
While working on accessibility for our default theme I stumbled upon this:
we could:
getIconSvgmethod, adding a newroleparameter (default=none) that injects the role attribute (not a super fan of this, since it would be the third parameter, making everybody having to specify the second parameter in order to use it...)role="none"on every svg file (not a fan of this either) but it's probably ok@justinbeaty, any other ideas?
Beta Was this translation helpful? Give feedback.
All reactions