Skip to content

Commit 7d3a715

Browse files
authored
Merge pull request #1116 from manuelodelain/fix/v-icon-hydration-mismatch
fix(VIcon): avertissement de problème d'hydratation
2 parents 7118233 + 5f61c52 commit 7d3a715

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/components/VIcon/VIcon.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const finalColor = computed(() => {
5454
<Icon
5555
ref="icon"
5656
:icon="finalName"
57-
:style="{ fontSize, verticalAlign, display }"
57+
:style="{ fontSize, verticalAlign, display, color: finalColor }"
5858
:aria-label="label"
5959
class="vicon"
6060
:class="{
@@ -75,9 +75,6 @@ const finalColor = computed(() => {
7575
</template>
7676

7777
<style scoped>
78-
.vicon {
79-
color: v-bind(finalColor);
80-
}
8178
.vicon-inverse {
8279
color: #fff;
8380
}

0 commit comments

Comments
 (0)