Skip to content

Commit 7c86e45

Browse files
committed
fix card font sizes
1 parent 4d54911 commit 7c86e45

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

packages/uui-card-block-type/lib/uui-card-block-type.element.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,12 @@ export class UUICardBlockTypeElement extends UUICardElement {
5757
return html`
5858
<button
5959
id="open-part"
60+
class="uui-text"
6061
tabindex=${this.disabled ? (nothing as any) : '0'}
6162
@click=${this.handleOpenClick}
6263
@keydown=${this.handleOpenKeydown}>
63-
<strong>${this.name}</strong><small>${this.description}</small>
64+
<span id="name">${this.name}</span>
65+
<small>${this.description}</small>
6466
</button>
6567
`;
6668
}
@@ -69,6 +71,7 @@ export class UUICardBlockTypeElement extends UUICardElement {
6971
return html`
7072
<a
7173
id="open-part"
74+
class="uui-text"
7275
tabindex=${this.disabled ? (nothing as any) : '0'}
7376
href=${ifDefined(!this.disabled ? this.href : undefined)}
7477
target=${ifDefined(this.target || undefined)}
@@ -78,7 +81,8 @@ export class UUICardBlockTypeElement extends UUICardElement {
7881
this.target === '_blank' ? 'noopener noreferrer' : undefined,
7982
),
8083
)}>
81-
<strong>${this.name}</strong><small>${this.description}</small>
84+
<span id="name">${this.name}</span>
85+
<small>${this.description}</small>
8286
</a>
8387
`;
8488
}
@@ -121,12 +125,11 @@ export class UUICardBlockTypeElement extends UUICardElement {
121125
border-top: 1px solid var(--uui-color-divider);
122126
border-radius: 0 0 var(--uui-border-radius) var(--uui-border-radius);
123127
font-family: inherit;
124-
font-size: var(--uui-type-small-size);
125128
box-sizing: border-box;
126129
padding: var(--uui-size-2) var(--uui-size-4);
127130
display: flex;
128131
flex-direction: column;
129-
line-height: var(--uui-size-6);
132+
line-height: normal;
130133
}
131134
132135
:host([disabled]) #open-part {

packages/uui-card-media/lib/uui-card-media.element.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ export class UUICardMediaElement extends UUICardElement {
200200
width: 100%;
201201
align-items: center;
202202
font-family: inherit;
203-
font-size: var(--uui-type-small-size);
204203
box-sizing: border-box;
205204
text-align: left;
206205
word-break: break-word;

packages/uui-card/lib/uui-card.element.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
SelectOnlyMixin,
44
} from '@umbraco-ui/uui-base/lib/mixins';
55
import { defineElement } from '@umbraco-ui/uui-base/lib/registration';
6+
import { UUITextStyles } from '@umbraco-ui/uui-css/lib';
67
import { css, html, LitElement } from 'lit';
78
import { property } from 'lit/decorators.js';
89

@@ -87,6 +88,7 @@ export class UUICardElement extends SelectOnlyMixin(
8788
}
8889

8990
static styles = [
91+
UUITextStyles,
9092
css`
9193
:host {
9294
position: relative;

0 commit comments

Comments
 (0)