Skip to content

Commit c4b32fc

Browse files
committed
adjust sizes and apperance for ref node
1 parent 0783899 commit c4b32fc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/uui-ref-node/lib/uui-ref-node.element.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export class UUIRefNodeElement extends UUIRefElement {
104104

105105
#renderContent() {
106106
return html`
107-
<span id="content">
107+
<span id="content" class="uui-text">
108108
<span id="icon">
109109
<slot name="icon" @slotchange=${this.#onSlotIconChange}></slot>
110110
${this._iconSlotHasContent === false
@@ -122,6 +122,7 @@ export class UUIRefNodeElement extends UUIRefElement {
122122
#renderLink() {
123123
return html`<a
124124
id="open-part"
125+
class="uui-text"
125126
tabindex=${this.disabled ? (nothing as any) : '0'}
126127
href=${ifDefined(!this.disabled ? this.href : undefined)}
127128
target=${ifDefined(this.target || undefined)}
@@ -140,6 +141,7 @@ export class UUIRefNodeElement extends UUIRefElement {
140141
<button
141142
type="button"
142143
id="open-part"
144+
class="uui-text"
143145
tabindex="0"
144146
@click=${this.handleOpenClick}
145147
@keydown=${this.handleOpenKeydown}
@@ -192,12 +194,11 @@ export class UUIRefNodeElement extends UUIRefElement {
192194
align-self: stretch;
193195
display: flex;
194196
flex-grow: 1;
195-
padding: calc(var(--uui-size-2));
197+
padding: calc(var(--uui-size-3));
196198
}
197199
198200
#icon {
199201
font-size: 1.2em;
200-
margin-left: var(--uui-size-2);
201202
margin-right: var(--uui-size-1);
202203
}
203204
@@ -211,7 +212,7 @@ export class UUIRefNodeElement extends UUIRefElement {
211212
}
212213
213214
#detail {
214-
font-size: var(--uui-type-small-size);
215+
opacity: 0.6;
215216
}
216217
217218
:host([selectable]) #open-part {

0 commit comments

Comments
 (0)