Skip to content

Commit 830a881

Browse files
author
Maximilian
committed
feature: UIKit - logo: replaced ratio property #1111
1 parent b9ba7a1 commit 830a881

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/uikit-workshop/src/scripts/lit-components/pl-header/pl-header.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ class Header extends BaseLitComponent {
116116
: window.config?.theme?.logo?.url || '/'}"
117117
alt-text="${window.config?.theme?.logo?.altText || ''}"
118118
theme="${this.themeMode}"
119-
ratio="${window.config?.theme?.logo?.ratio || ''}"
119+
width="${window.config?.theme?.logo?.width || ''}"
120+
height="${window.config?.theme?.logo?.height || ''}"
120121
text="${window.config?.theme?.logo?.text === '' ||
121122
window.config?.theme?.logo?.text === false ||
122123
window.config?.theme?.logo?.text === 'none'

packages/uikit-workshop/src/scripts/lit-components/pl-logo/pl-logo.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ class Logo extends BaseLitComponent {
2020

2121
static get properties() {
2222
return {
23-
ratio: String,
23+
width: String,
24+
height: String,
2425
theme: String,
2526
url: String,
2627
text: String,
@@ -48,6 +49,8 @@ class Logo extends BaseLitComponent {
4849
alt=${this.altText || 'Pattern Lab Logo'}
4950
src=${imageSrc}
5051
class="pl-c-logo__img"
52+
width="${this.width}"
53+
height="${this.height}"
5154
/>
5255
${this.text && this.text !== ''
5356
? html`

0 commit comments

Comments
 (0)