Skip to content

Commit 389ecf5

Browse files
author
Nathan Reyes
committed
Fix application of styling for date pickers when not inline. Closes #17
1 parent cce68c2 commit 389ecf5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 0.3.1
2+
* Fix application of styling for date pickers when not inline. Closes #17.
3+
14
## 0.3.0
25
* Add support for accepting various defaults when calling Vue.use(VCalendar, { ...defaults... })
36
* Set default calendar pages to best show date picker values

src/components/DatePicker.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,8 @@ export default {
182182
},
183183
...this.themeStyles,
184184
};
185-
if (!this.isInline) {
186-
styles.wrapper = {
187-
border: '0',
188-
};
189-
}
185+
// Strip border from the wrapper when used in a popover
186+
if (!this.isInline && styles.wrapper) styles.wrapper.border = '0';
190187
return styles;
191188
},
192189
popoverContentStyle() {

src/components/Popover.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ export default {
274274
&:after
275275
display: block
276276
position: absolute
277-
background-color: inherit
277+
background: inherit
278278
border: inherit
279279
border-width: 1px 1px 0 0
280280
width: 12px

0 commit comments

Comments
 (0)