Color Picker: Styling for drag handle at swatch items (#20360)
Add styling for drag handle at color picker item input
This commit is contained in:
committed by
GitHub
parent
36dbab2289
commit
cd1cbb3b15
@@ -160,7 +160,7 @@ export class UmbMultipleColorPickerItemInputElement extends UUIFormControlMixin(
|
||||
return html`
|
||||
<umb-form-validation-message id="validation-message" @invalid=${this.#onInvalid} @valid=${this.#onValid}>
|
||||
<div id="item">
|
||||
${this.disabled || this.readonly ? nothing : html`<uui-icon name="icon-grip"></uui-icon>`}
|
||||
${this.disabled || this.readonly ? nothing : html`<uui-icon name="icon-grip" class="handle"></uui-icon>`}
|
||||
<div class="color-wrapper">
|
||||
<uui-input
|
||||
id="input"
|
||||
@@ -265,6 +265,14 @@ export class UmbMultipleColorPickerItemInputElement extends UUIFormControlMixin(
|
||||
margin: 0;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.handle {
|
||||
cursor: grab;
|
||||
}
|
||||
|
||||
.handle:active {
|
||||
cursor: grabbing;
|
||||
}
|
||||
`,
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user