Skip to content

Commit d396fe5

Browse files
author
Jesse Haigh
committed
use SVGIcon wrapper for icons (issues with color?)
1 parent e7d5884 commit d396fe5

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

src/components/Icons/CheckmarkIcon.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,21 @@
99
-->
1010

1111
<template>
12-
<svg
12+
<SVGIcon
1313
class="checkmark-icon"
1414
viewBox="0 0 24 24"
15+
themeId="checkmark"
1516
>
1617
<path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/>
17-
</svg>
18+
</SVGIcon>
1819
</template>
1920

2021
<script>
22+
import SVGIcon from 'docc-render/components/SVGIcon.vue';
23+
2124
export default {
2225
name: 'CheckmarkIcon',
26+
components: { SVGIcon },
2327
};
2428
</script>
2529

src/components/Icons/CopyIcon.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,24 @@
99
-->
1010

1111
<template>
12-
<svg
12+
<SVGIcon
1313
class="copy-icon"
1414
viewBox="0 0 24 24"
15+
themeId="copy"
1516
>
1617
<title>{{ $t('icons.copy') }}</title>
1718
<path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2
1819
.9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0
1920
16H8V7h11v14z"/>
20-
</svg>
21+
</SVGIcon>
2122
</template>
2223

2324
<script>
25+
import SVGIcon from 'docc-render/components/SVGIcon.vue';
26+
2427
export default {
2528
name: 'CopyIcon',
29+
components: { SVGIcon },
2630
};
2731
</script>
2832

0 commit comments

Comments
 (0)