Skip to content

Commit 47218fe

Browse files
committed
correct ref-node selection area
1 parent f73a852 commit 47218fe

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ export class UUIRefNodeElement extends UUIRefElement {
173173
display: flex;
174174
position: relative;
175175
align-items: center;
176-
margin: calc(var(--uui-size-2));
177176
}
178177
179178
#open-part {
@@ -182,6 +181,8 @@ export class UUIRefNodeElement extends UUIRefElement {
182181
cursor: pointer;
183182
align-self: stretch;
184183
display: flex;
184+
flex-grow: 1;
185+
padding: calc(var(--uui-size-2));
185186
}
186187
187188
#icon {
@@ -207,15 +208,16 @@ export class UUIRefNodeElement extends UUIRefElement {
207208
font-size: var(--uui-type-small-size);
208209
}
209210
210-
:host(:not([selectable])) #open-part {
211-
flex-grow: 1;
211+
:host([selectable]) #open-part {
212+
flex-grow: 0;
213+
padding: 0;
214+
margin: calc(var(--uui-size-2));
212215
}
213216
214217
:host(:not([disabled])) #open-part:hover #icon {
215218
color: var(--uui-color-interactive-emphasis);
216219
}
217220
:host(:not([disabled])) #open-part:hover #name {
218-
font-weight: 700;
219221
text-decoration: underline;
220222
color: var(--uui-color-interactive-emphasis);
221223
}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ export class UUIRefElement extends SelectOnlyMixin(
179179
text-align: left;
180180
color: var(--uui-color-text);
181181
}
182+
a {
183+
text-decoration: none;
184+
color: inherit;
185+
}
182186
183187
slot[name='actions'] {
184188
display: flex;
@@ -195,6 +199,7 @@ export class UUIRefElement extends SelectOnlyMixin(
195199
transition: opacity 120ms;
196200
}
197201
:host(:hover) #actions-container,
202+
:host(:focus) #actions-container,
198203
:host(:focus-within) #actions-container {
199204
opacity: 1;
200205
}

0 commit comments

Comments
 (0)