Skip to content

Commit

Permalink
fix: simpler css bind
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Mar 7, 2022
1 parent eaeb919 commit a9c8122
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
Expand Up @@ -14,8 +14,6 @@ const props = withDefaults(defineProps<{
const filePadding = computed(() => {
return (props.depth * 16) + 'px'
})
const iconColor = computed(() => props.story.iconColor)
</script>

<template>
Expand Down Expand Up @@ -55,6 +53,6 @@ const iconColor = computed(() => props.story.iconColor)
}
.bind-icon-color {
color: v-bind(iconColor);
color: v-bind('story.iconColor');
}
</style>
Expand Up @@ -19,8 +19,6 @@ const props = defineProps({
const { variant } = toRefs(props)
const { isActive, targetRoute } = useCurrentVariantRoute(variant)
const iconColor = computed(() => props.variant.iconColor)
</script>

<template>
Expand Down Expand Up @@ -66,6 +64,6 @@ const iconColor = computed(() => props.variant.iconColor)
<style scoped>
.bind-icon-color {
color: v-bind(iconColor);
color: v-bind('variant.iconColor');
}
</style>
Expand Up @@ -14,8 +14,6 @@ const props = defineProps({
const { variant } = toRefs(props)
const { isActive, targetRoute } = useCurrentVariantRoute(variant)
const iconColor = computed(() => props.variant.iconColor)
</script>

<template>
Expand All @@ -41,6 +39,6 @@ const iconColor = computed(() => props.variant.iconColor)
<style scoped>
.bind-icon-color {
color: v-bind(iconColor);
color: v-bind('variant.iconColor');
}
</style>
Expand Up @@ -43,8 +43,6 @@ const defaultIcons = {
variant: 'carbon:cube',
}
const iconColor = computed(() => props.result.iconColor)
const kindLabels = {
story: 'Story',
variant: 'Variant',
Expand Down Expand Up @@ -105,6 +103,6 @@ const kindLabels = {
<style scoped>
.bind-icon-color {
color: v-bind(iconColor);
color: v-bind('result.iconColor');
}
</style>

0 comments on commit a9c8122

Please sign in to comment.