Vuetify: Button doesn't apply 'primary'

Created on 19 Dec 2016  ยท  3Comments  ยท  Source: vuetifyjs/vuetify

Button with primary doesn't apply primary class.

Should Button.vue add 'primary': this.primary and 'secondary': this.secondary โ”


SS1


SS2


Here is my App.vue file:

<template>
    <div id="app">
        <div v-for="button in buttons">
            <v-btn
                :flat="button.flat"
                :primary="button.primary"
                :block="button.block"
                :outline="button.outline"
                :floating="button.floating"
            >
                {{ button.name }}
            </v-btn>
        </div>
    </div>
</template>

<script>
export default {
    name: 'app',
    data() {
        return {
            buttons: [
                { name: 'default' },
                { name: 'flat', flat: true },
                { name: 'primary', primary: true },
                { name: 'block', block: true },
                { name: 'outline', outline: true },
                { name: 'floating', floating: true }
            ]
        };
    },
    mounted() {
        this.$vuetify.init();
    }
};
</script>

<style lang="scss">
#app {
    text-align: center;
    color: #2c3e50;
    margin: {
        top: 2rem;
        left: 2rem;
        right: 2rem;
    }

    & > div {
        margin: 2em auto;
    }
}
</style>
enhancement

Most helpful comment

All 3 comments

I actually removed this but forgot to do so within the documentation as I thought it might not be used. If that's not the case, I can add it back.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please direct any non-bug questions to our Discord

Was this page helpful?
0 / 5 - 0 ratings

Related issues

milleraa picture milleraa  ยท  3Comments

paladin2005 picture paladin2005  ยท  3Comments

smousa picture smousa  ยท  3Comments

vordimous picture vordimous  ยท  3Comments

sebastianmacias picture sebastianmacias  ยท  3Comments