Skip to content

Commit

Permalink
Fix application of styling for date pickers when not inline. Closes #17
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Reyes committed Nov 27, 2017
1 parent cce68c2 commit 389ecf5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.3.1
* Fix application of styling for date pickers when not inline. Closes #17.

## 0.3.0
* Add support for accepting various defaults when calling Vue.use(VCalendar, { ...defaults... })
* Set default calendar pages to best show date picker values
Expand Down
7 changes: 2 additions & 5 deletions src/components/DatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,8 @@ export default {
},
...this.themeStyles,
};
if (!this.isInline) {
styles.wrapper = {
border: '0',
};
}
// Strip border from the wrapper when used in a popover
if (!this.isInline && styles.wrapper) styles.wrapper.border = '0';
return styles;
},
popoverContentStyle() {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Popover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ export default {
&:after
display: block
position: absolute
background-color: inherit
background: inherit
border: inherit
border-width: 1px 1px 0 0
width: 12px
Expand Down

0 comments on commit 389ecf5

Please sign in to comment.