Skip to content

Commit

Permalink
fix: button snapshot (#897)
Browse files Browse the repository at this point in the history
Co-authored-by: Lee Chase <lee.chase@uk.ibm.com>
  • Loading branch information
lee-chase and lee-chase authored May 11, 2020
1 parent 324d78c commit 42a9ab6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/components/cv-button/cv-icon-button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ export default {
},
computed: {
buttonClasses() {
return `${this.buttonClassOpts({ iconOnly: true })} ${this.tipClasses}`;
return `${this.buttonClassOpts({ iconOnly: true })}${this.tipClasses}`;
},
tipClasses() {
const tipPosition = this.tipPosition || 'bottom';
const tipAlignment = this.tipAlignment || 'center';
if (this.label) {
return `${this.carbonPrefix}--tooltip__trigger ${this.carbonPrefix}--tooltip--a11y ${this.carbonPrefix}--tooltip--${tipPosition} ${this.carbonPrefix}--tooltip--align-${tipAlignment}`;
return ` ${this.carbonPrefix}--tooltip__trigger ${this.carbonPrefix}--tooltip--a11y ${this.carbonPrefix}--tooltip--${tipPosition} ${this.carbonPrefix}--tooltip--align-${tipAlignment}`;
} else {
return '';
}
Expand Down

0 comments on commit 42a9ab6

Please sign in to comment.