feat(icons): Add new icon arrow-down-right for Number Card

This commit is contained in:
Corentin Flr 2023-06-16 00:28:34 +02:00 committed by GitHub
parent 71bfafc6b2
commit 7710dbb8bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -93,6 +93,11 @@
<path d="M2.49999 4L2.49998 9.5L7.99998 9.5" stroke-linecap="round" stroke-linejoin="round"/>
</symbol>
<symbol viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" id="icon-arrow-down-right">
<path d="M2.5 2.5L9.5 9.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M4 9.5h5.5v-5.5" stroke-linecap="round" stroke-linejoin="round"/>
</symbol>
<symbol viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg" id="icon-expand">
<path d="M10 2L6.844 5.158M7.053 2h2.948v2.948M5.158 6.842L2 10m0-2.947V10h2.947" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"></path>
</symbol>

Before

Width:  |  Height:  |  Size: 113 KiB

After

Width:  |  Height:  |  Size: 114 KiB

View file

@ -238,7 +238,7 @@ export default class NumberCardWidget extends Widget {
color_class = "green-stat";
} else {
caret_html = `<span class="indicator-pill-round red">
${frappe.utils.icon("arrow-down-left", "xs")}
${frappe.utils.icon("arrow-down-right", "xs")}
</span>`;
color_class = "red-stat";
}