Skip to content
Snippets Groups Projects
Commit 02640ce3 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Use currentColor for the icon color

parent a40d22ae
No related branches found
No related tags found
No related merge requests found
...@@ -81,10 +81,10 @@ class VpuCommonDemo extends VPULitElement { ...@@ -81,10 +81,10 @@ class VpuCommonDemo extends VPULitElement {
<label class="label">Icons</label> <label class="label">Icons</label>
<div class="control"> <div class="control">
<vpu-icon name="access-point-network-off"></vpu-icon> <vpu-icon name="access-point-network-off"></vpu-icon>
<vpu-icon color="green"></vpu-icon> <vpu-icon style="color: green"></vpu-icon>
<vpu-icon color="red"></vpu-icon> <vpu-icon style="color: red"></vpu-icon>
<vpu-icon color="blue"></vpu-icon> <vpu-icon style="color: blue"></vpu-icon>
<vpu-icon color="orange" name="menu-down"></vpu-icon> <vpu-icon style="color: orange" name="menu-down"></vpu-icon>
</div> </div>
</div> </div>
<div class="container"> <div class="container">
......
...@@ -43,7 +43,7 @@ class Icon extends LitElement { ...@@ -43,7 +43,7 @@ class Icon extends LitElement {
return html` return html`
<style> <style>
:host path { :host path {
fill: ${this.color}; fill: currentColor;
} }
</style> </style>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment