Moved active class declation to parent.

This commit is contained in:
2020-10-12 00:35:14 +02:00
committed by KevinMidboe
parent 53ef555822
commit a7fc12038c

View File

@@ -20,10 +20,6 @@
:class="{ 'active': locallyRequested }">
Anbefal
</a>
<a aria-role="button" tabindex="0" class="link float-left" @click="request"
:class="{ 'active': locallyRequested }">
</a>
</template>
</Wine>
</template>
@@ -78,6 +74,8 @@ export default {
</script>
<style lang="scss" scoped>
@import "./src/styles/variables";
.requested-count {
display: inline-block;
margin-top: -0.5rem;
@@ -97,4 +95,8 @@ export default {
font-style: unset;
}
}
.link .active {
border-color: $link-color;
}
</style>