Skip to content

Commit

Permalink
fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
CraigGoesCoding committed Sep 25, 2020
2 parents 96118d0 + 62e6040 commit 4a9a836
Show file tree
Hide file tree
Showing 11 changed files with 166 additions and 218 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,9 @@ These props are used to style the star rating component
| padding | Pads the right of each star so distance between stars can be altered | 0 |
| rounded-corners | Whether or not to round the star's corners | false |
| inline | Sets the star rating to display inline | false |
| glow | Adds a subtle glow around each active star, this should be a number to spread the glow | 0 |
| glow-color | Sets the color for the glow (note, this effect can be very subtle) | #000 |
| clearable | When set to true a second click on the same rating clears the rating | false |
| glow | Adds a subtle glow around each active star, this should be a number to spread the glow (requires `glow-color` to be set) | 0 |
| glow-color | Sets the color for the glow (note, this effect can be very subtle) | null |
| text-class | A css class name to style the rating text for a specific star rating component | '' |

**Important:** Vue requires you to pass numbers and boolean values using `v-bind`, any props that require a number or bool should use `v-bind:` or the colon (`:`) shorthand.
Expand Down
116 changes: 58 additions & 58 deletions dist/VueStarRating.common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/VueStarRating.common.js.map

Large diffs are not rendered by default.

116 changes: 58 additions & 58 deletions dist/VueStarRating.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/VueStarRating.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/VueStarRating.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/VueStarRating.umd.min.js.map

Large diffs are not rendered by default.

129 changes: 38 additions & 91 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-star-rating",
"version": "2.0.2",
"version": "2.0.3",
"description": "A simple, highly customisable star rating component for Vue 3.x.",
"main": "dist/VueStarRating.common.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions spec/star-rating.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,9 @@ describe('star-rating component', () => {
const wrapper = mount(StarRating)
let stars = wrapper.findAll('polygon')

// expect there to be 15 polygons, because we have 3 polygons for each star to account for border and glow
// so, 5 stars is 15 polygons
expect(stars.length).toEqual(15);
// expect there to be 10 polygons, because we have 2 polygons for each star (3 if glow is turned on) to account for border and glow
// so, 5 stars is 10 polygons
expect(stars.length).toEqual(10);
});


Expand Down
2 changes: 1 addition & 1 deletion src/star-rating.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export default {
},
glowColor: {
type: String,
default: '#fff'
default: null
},
clearable: {
type: Boolean,
Expand Down

0 comments on commit 4a9a836

Please sign in to comment.