We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 830a881 commit c130f69Copy full SHA for c130f69
packages/uikit-workshop/src/scripts/lit-components/pl-logo/pl-logo.js
@@ -1,4 +1,5 @@
1
import { store } from '../../store.js'; // connect to redux
2
+import { ifDefined } from 'lit-html/directives/if-defined';
3
import { html } from 'lit-html';
4
import { customElement } from 'lit-element';
5
import { BaseLitComponent } from '../../components/base-component';
@@ -49,8 +50,8 @@ class Logo extends BaseLitComponent {
49
50
alt=${this.altText || 'Pattern Lab Logo'}
51
src=${imageSrc}
52
class="pl-c-logo__img"
- width="${this.width}"
53
- height="${this.height}"
+ width="${ifDefined(this.width)}"
54
+ height="${ifDefined(this.height)}"
55
/>
56
${this.text && this.text !== ''
57
? html`
0 commit comments