File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed
packages/uui-input-color/lib Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -68,22 +68,16 @@ export class UUIInputColorElement extends UUIInputElement {
6868 <input
6969 type= "color"
7070 id = "color"
71- value = "${ this . value } "
72- ?dis abled= ${ this . disabled }
73- ?readonly = ${ this . readonly }
74- @change = ${ this . #onColorChange}
75- aria- hidden= "true" / >
71+ aria-hidden = "true"
72+ value = ${ this . value }
73+ @change = ${ this . #onColorChange} / >
7674 </ div> ` ;
7775 }
7876
7977 static styles = [
8078 ...UUIInputElement . styles ,
8179 css `
82- : host {
83- }
84-
8580 .color-wrapper {
86- cursor : pointer;
8781 display : inline-flex;
8882 position : relative;
8983 border-right : var (--uui-input-border-width , 1px ) solid
@@ -100,8 +94,13 @@ export class UUIInputColorElement extends UUIInputElement {
10094 }
10195
10296 uui-color-swatch {
103- margin-left : 0.25rem ;
104- margin-right : 0.25rem ;
97+ padding : var (--uui-size-1 );
98+ }
99+
100+ uui-color-swatch : focus-within {
101+ outline : 2px solid var (--uui-color-selected );
102+ outline-offset : 0 ;
103+ border-radius : var (--uui-border-radius );
105104 }
106105 ` ,
107106 ] ;
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ const meta: Meta<UUIInputColorElement> = {
1313 id : 'uui-input-color' ,
1414 title : 'Inputs/Input Color' ,
1515 component : 'uui-input-color' ,
16+ args : {
17+ label : 'Color' ,
18+ } ,
1619 render : args => html `< uui-input-color ${ spread ( args ) } > </ uui-input-color > ` ,
1720 parameters : {
1821 readme : {
You can’t perform that action at this time.
0 commit comments