Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button doesn't apply 'primary' #11

Closed
gluons opened this issue Dec 19, 2016 · 3 comments
Closed

Button doesn't apply 'primary' #11

gluons opened this issue Dec 19, 2016 · 3 comments
Assignees
Labels
T: enhancement Functionality that enhances existing features

Comments

@gluons
Copy link

gluons commented Dec 19, 2016

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>
@johnleider
Copy link
Member

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.

@johnleider johnleider added the T: enhancement Functionality that enhances existing features label Dec 20, 2016
@johnleider johnleider self-assigned this Dec 20, 2016
@johnleider
Copy link
Member

@lock
Copy link

lock bot commented Apr 17, 2019

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

@lock lock bot locked as resolved and limited conversation to collaborators Apr 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T: enhancement Functionality that enhances existing features
2 participants