Skip to content

Commit 9416a30

Browse files
committed
correct fonts on cards
1 parent c4b32fc commit 9416a30

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class UUICardContentNodeElement extends UUICardElement {
6868

6969
#renderContent() {
7070
return html`
71-
<span id="content">
71+
<span id="content" class="uui-text">
7272
<span id="item">
7373
<span id="icon">
7474
<slot name="icon" @slotchange=${this._onSlotIconChange}></slot>
@@ -167,7 +167,6 @@ export class UUICardContentNodeElement extends UUICardElement {
167167
#open-part {
168168
display: flex;
169169
position: relative;
170-
font-weight: 700;
171170
align-items: center;
172171
cursor: pointer;
173172
flex-grow: 1;

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,12 @@ export class UUICardMediaElement extends UUICardElement {
102102

103103
#renderContent() {
104104
return html`
105-
<div id="content">
105+
<div id="content" class="uui-text">
106106
<!--
107107
TODO: Implement info box when pop-out is ready
108108
-->
109109
<span id="name">${this.name}</span>
110-
${this.detail}<slot name="detail"></slot>
110+
<small id="detail">${this.detail}<slot name="detail"></slot></small>
111111
</div>
112112
`;
113113
}
@@ -219,8 +219,8 @@ export class UUICardMediaElement extends UUICardElement {
219219
opacity: 0.96;
220220
}
221221
222-
#name {
223-
font-weight: 700;
222+
#detail {
223+
opacity: 0.6;
224224
}
225225
226226
:host(

0 commit comments

Comments
 (0)