Skip to content

Commit

Permalink
Fix: remove bold from ref name (#973)
Browse files Browse the repository at this point in the history
* remove bold from ref name

* adjust sizes and apperance for ref node

* correct fonts on cards

---------

Co-authored-by: Niels Lyngsø <[email protected]>
  • Loading branch information
madsrasmussen and nielslyngsoe authored Jan 23, 2025
1 parent 976e52c commit e71ed10
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class UUICardContentNodeElement extends UUICardElement {

#renderContent() {
return html`
<span id="content">
<span id="content" class="uui-text">
<span id="item">
<span id="icon">
<slot name="icon" @slotchange=${this._onSlotIconChange}></slot>
Expand Down Expand Up @@ -167,7 +167,6 @@ export class UUICardContentNodeElement extends UUICardElement {
#open-part {
display: flex;
position: relative;
font-weight: 700;
align-items: center;
cursor: pointer;
flex-grow: 1;
Expand Down
8 changes: 4 additions & 4 deletions packages/uui-card-media/lib/uui-card-media.element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ export class UUICardMediaElement extends UUICardElement {

#renderContent() {
return html`
<div id="content">
<div id="content" class="uui-text">
<!--
TODO: Implement info box when pop-out is ready
-->
<span id="name">${this.name}</span>
${this.detail}<slot name="detail"></slot>
<small id="detail">${this.detail}<slot name="detail"></slot></small>
</div>
`;
}
Expand Down Expand Up @@ -219,8 +219,8 @@ export class UUICardMediaElement extends UUICardElement {
opacity: 0.96;
}
#name {
font-weight: 700;
#detail {
opacity: 0.6;
}
:host(
Expand Down
13 changes: 5 additions & 8 deletions packages/uui-ref-node/lib/uui-ref-node.element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class UUIRefNodeElement extends UUIRefElement {

#renderContent() {
return html`
<span id="content">
<span id="content" class="uui-text">
<span id="icon">
<slot name="icon" @slotchange=${this.#onSlotIconChange}></slot>
${this._iconSlotHasContent === false
Expand All @@ -122,6 +122,7 @@ export class UUIRefNodeElement extends UUIRefElement {
#renderLink() {
return html`<a
id="open-part"
class="uui-text"
tabindex=${this.disabled ? (nothing as any) : '0'}
href=${ifDefined(!this.disabled ? this.href : undefined)}
target=${ifDefined(this.target || undefined)}
Expand All @@ -140,6 +141,7 @@ export class UUIRefNodeElement extends UUIRefElement {
<button
type="button"
id="open-part"
class="uui-text"
tabindex="0"
@click=${this.handleOpenClick}
@keydown=${this.handleOpenKeydown}
Expand Down Expand Up @@ -190,12 +192,11 @@ export class UUIRefNodeElement extends UUIRefElement {
cursor: pointer;
display: flex;
flex-grow: 1;
padding: calc(var(--uui-size-2));
padding: calc(var(--uui-size-3));
}
#icon {
font-size: 1.2em;
margin-left: var(--uui-size-2);
margin-right: var(--uui-size-1);
display: flex;
align-items: center;
Expand All @@ -211,12 +212,8 @@ export class UUIRefNodeElement extends UUIRefElement {
padding-left: var(--uui-size-2);
}
#name {
font-weight: 700;
}
#detail {
font-size: var(--uui-type-small-size);
opacity: 0.6;
}
:host([selectable]) #open-part {
Expand Down

0 comments on commit e71ed10

Please sign in to comment.