Skip to content

Commit

Permalink
Add "currentColor" as fill for svg sprite property
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelAlphonso committed Jul 10, 2018
1 parent deb5251 commit 9bf682c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Charcoal/Property/SpriteProperty.php
Expand Up @@ -211,7 +211,7 @@ public function displayVal($val, array $options = [])

if ($val !== '') {
$val = $this->view->render(
'<svg viewBox="0 0 25 25" height="40px" role=\'img\'><use xlink:href=\'{{# withBaseUrl }}{{ spritePathWithHash }}{{/ withBaseUrl }}\'></use></svg>',
'<svg fill="currentColor" viewBox="0 0 25 25" height="40px" role=\'img\'><use xlink:href=\'{{# withBaseUrl }}{{ spritePathWithHash }}{{/ withBaseUrl }}\'></use></svg>',
[
'spritePathWithHash' => $this->sprite().'#'.$val
]
Expand Down

0 comments on commit 9bf682c

Please sign in to comment.