Skip to content

Commit

Permalink
remove unused width and height
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jul 26, 2020
1 parent a05713b commit 910100e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/icon-service/mdi.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ function mdiIconName(str) {
}

let mdi; // mdi iconSet
export async function createMDIIcon(iconName, iconSize) {
export async function createMDIIcon(iconName) {
if (!mdi) {
mdi = await import('@mdi/js')
}
const iconData = mdi[mdiIconName(iconName)];
const icon = document.createElement("div");
icon.style.verticalAlign = "bottom"
icon.innerHTML = `
<svg style='width:${iconSize}px; height:${iconSize}px' viewBox='0 0 24 24'>
<svg viewBox='0 0 24 24'>
<path fill='currentColor', d='${iconData}'/>
<svg/>
`
Expand Down

0 comments on commit 910100e

Please sign in to comment.