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

Add storybook background #10

Merged
merged 3 commits into from
Apr 2, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add no vuetify background
gesseekur committed Apr 2, 2020
commit a9efae5f59c9c446691f6c1903f88defd64ac3fa
14 changes: 11 additions & 3 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -52,12 +52,20 @@ configureViewport({

addDecorator(() => ({
vuetify: vuetifyConfig,
template: '<v-app><v-content><v-container><v-layout column><story/></v-layout></v-container></v-content></v-app>',
template: '<v-app :style="noBackground"><v-content><v-container><v-layout column><story/></v-layout></v-container></v-content></v-app>',
data() {
return {
noBackground: {
background: "none"
}
}
}
}));

addParameters({
backgrounds: [
{ name: "light", value: "#eeeeee" },
{ name: "dark", value: "#222222" }
{ name: "light", value: "#fff" },
{ name: "dark-blue", value: "#184f90" },
{ name: "primary", value: "#05c0a5"}
]
});
6 changes: 3 additions & 3 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<v-app>
<v-app class="no-background">
<Header />
<v-content>
<router-view />
@@ -68,8 +68,8 @@ h5 {
font-size: 14px !important;
}
.theme--light.v-application {
background: var(--v-white-base) !important;
.no-background {
background: none !important;
}
@media (min-width: 1904px) {
5 changes: 0 additions & 5 deletions stories/MewButton/MewButton.stories.js
Original file line number Diff line number Diff line change
@@ -53,8 +53,3 @@ export const SecondaryTheme = () => Secondary;
export const WhiteTheme = () => White;
export const DisabledTheme = () => Disabled;

WhiteTheme.story = {
parameters: {
backgrounds: [{ name: "dark background", value: "#FF0000", default: true }]
}
};