UX Changes to Component Name Editing Flow (#13921)

* rb

* PR Feedback
This commit is contained in:
Gerard Burns 2024-06-14 13:28:49 +01:00 committed by GitHub
parent bc949e2f54
commit 1a6e840593
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 26 additions and 1 deletions

View File

@ -70,7 +70,7 @@
<input <input
class="input" class="input"
value={title} value={title}
{title} title={componentName}
placeholder={componentName} placeholder={componentName}
on:keypress={e => { on:keypress={e => {
if (e.key.toLowerCase() === "enter") { if (e.key.toLowerCase() === "enter") {
@ -158,7 +158,32 @@
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
position: relative;
padding: 5px;
right: 6px;
border: 1px solid transparent;
border-radius: 3px;
transition: 150ms background-color, 150ms border-color, 150ms color;
} }
.input:hover,
.input:focus {
cursor: text;
background-color: var(
--spectrum-textfield-m-background-color,
var(--spectrum-global-color-gray-50)
);
border: 1px solid white;
border-color: var(
--spectrum-textfield-m-border-color,
var(--spectrum-alias-border-color)
);
color: var(
--spectrum-textfield-m-text-color,
var(--spectrum-alias-text-color)
);
}
.panel-title-content { .panel-title-content {
display: contents; display: contents;
} }