We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23eab67 commit 8caae0dCopy full SHA for 8caae0d
src/components/Icon/Icon.vue
@@ -11,7 +11,7 @@ span(:class="className")
11
:class="styles.Svg",
12
:focusable="false",
13
:aria-hidden="true",
14
- :viewBox="mdDown ? '1 1 18 18' : undefined",
+ v-bind="iconAttrs",
15
)
16
17
div(
@@ -69,7 +69,11 @@ const className = computed(() => classNames(
69
styles.Icon,
70
props.tone && styles[variationName('tone', props.tone)],
71
props.tone && styles.applyColor,
72
-))
+));
73
+
74
+const iconAttrs = computed(() => {
75
+ return mdDown ? { viewBox: '1 1 18 18' } : {};
76
+});
77
78
if (
79
props.tone
0 commit comments