fix style textarea + added story for an overview

This commit is contained in:
negue
2020-01-18 17:17:50 +01:00
parent 383bbc558b
commit 4a812a9d28
2 changed files with 28 additions and 8 deletions

View File

@@ -0,0 +1,28 @@
/* eslint-disable import/no-extraneous-dependencies */
import { storiesOf } from '@storybook/vue';
import { text, withKnobs } from '@storybook/addon-knobs';
const stories = storiesOf('Textare', module);
stories.addDecorator(withKnobs);
stories
.add('states', () => ({
components: { },
template: `
<div style="position: absolute; margin: 20px">
<textarea autofocus ref="area">Normal {{text}}</textarea> <button @click="$refs.area.focus()">Focus</button>
<br />
<textarea disabled>Disabled {{text}}</textarea><br />
<textarea readonly>Readonly {{text}}</textarea> <br />
</div>
`,
props: {
text: {
default: text('Area Message', 'example text'),
},
},
}));

View File

@@ -403,14 +403,6 @@
vertical-align: bottom; vertical-align: bottom;
border-radius: 2px; border-radius: 2px;
z-index: 5; z-index: 5;
border: solid 1px $gray-400;
opacity: 0.64;
background-color: $gray-500;
&:focus, &.has-content {
opacity: 1;
background-color: $white;
}
} }
} }