Skip to content

Commit

Permalink
adjust sizes and apperance for ref node
Browse files Browse the repository at this point in the history
  • Loading branch information
nielslyngsoe committed Jan 22, 2025
1 parent 0783899 commit c4b32fc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 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 @@ -192,12 +194,11 @@ export class UUIRefNodeElement extends UUIRefElement {
align-self: stretch;
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);
}
Expand All @@ -211,7 +212,7 @@ export class UUIRefNodeElement extends UUIRefElement {
}
#detail {
font-size: var(--uui-type-small-size);
opacity: 0.6;
}
:host([selectable]) #open-part {
Expand Down

0 comments on commit c4b32fc

Please sign in to comment.