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 {
<label class="label">Icons</label>
<div class="control">
<vpu-icon name="access-point-network-off"></vpu-icon>
<vpu-icon color="green"></vpu-icon>
<vpu-icon color="red"></vpu-icon>
<vpu-icon color="blue"></vpu-icon>
<vpu-icon color="orange" name="menu-down"></vpu-icon>
<vpu-icon style="color: green"></vpu-icon>
<vpu-icon style="color: red"></vpu-icon>
<vpu-icon style="color: blue"></vpu-icon>
<vpu-icon style="color: orange" name="menu-down"></vpu-icon>
</div>
</div>
<div class="container">
......
......@@ -43,7 +43,7 @@ class Icon extends LitElement {
return html`
<style>
:host path {
fill: ${this.color};
fill: currentColor;
}
</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