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

Properly prefix the icon path for the select arrow icon.

parent 5eaa5aad
No related branches found
No related tags found
No related merge requests found
import {css} from 'lit-element';
import {css, unsafeCSS} from 'lit-element';
import {getIconSVGURL} from './vpu-icon.js';
/**
* We want to have "neutral" colors here
......@@ -121,7 +122,7 @@ export function getGeneralCSS() {
select:not(.select) {
-moz-appearance: none;
-webkit-appearance: none;
background: calc(100% - 0.2rem) center no-repeat url("/local/vpu-common/icons/chevron-down.svg");
background: calc(100% - 0.2rem) center no-repeat url("${unsafeCSS(getIconSVGURL('chevron-down'))}");
background-size: 25%;
border-color: black;
border-width: 1px;
......
......@@ -17,7 +17,7 @@ const errorIcon = `
</svg>
`;
function getIconSVGURL(name) {
export function getIconSVGURL(name) {
return commonUtils.getAssetURL('local/vpu-common/icons/' + encodeURI(name) + '.svg');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment