Skip to content

Commit 2ef3958

Browse files
committed
(fix #1) default to unstyled
1 parent bdb5c92 commit 2ef3958

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010

1111
## Props
1212

13-
|Prop |Type |Required|Default|Description |
14-
|-------|-------|--------|-------|------------------------------------|
15-
|loading|boolean|false |false |Controls loading indicator animation|
16-
|styled |boolean|false |true |Disables inessential default styles |
13+
| Prop | Type | Required | Default | Description |
14+
| ------- | ------- | -------- | ------- | ------------------------------------ |
15+
| loading | boolean | false | false | Controls loading indicator animation |
16+
| styled | boolean | false | false | Enables opinionated sample styles |
1717

1818
## Installation
1919

@@ -40,13 +40,13 @@ Import, register and place the component in your Vue app.
4040
```
4141

4242
```js
43-
import VueLoadingButton from 'vue-loading-button'
43+
import VueLoadingButton from 'vue-loading-button';
4444

4545
export default {
4646
components: {
4747
VueLoadingButton,
48-
}
49-
}
48+
},
49+
};
5050
```
5151

5252
## Accessibility

examples/example.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default {
2828
data() {
2929
return {
3030
isLoading: false,
31-
isStyled: true
31+
isStyled: false
3232
};
3333
},
3434
methods: {

src/vue-loading-button.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default {
3030
styled: {
3131
type: Boolean,
3232
required: false,
33-
default: true
33+
default: false
3434
}
3535
}
3636
};
@@ -138,7 +138,7 @@ button:not(:disabled) .spinner span:nth-child(4) {
138138
}
139139
}
140140
141-
/* default styles */
141+
/* optional styles */
142142
.default-styles {
143143
color: white;
144144
background-color: blue;

0 commit comments

Comments
 (0)