@@ -500,30 +500,30 @@ export class UUIColorPickerElement extends LabelMixin('label', LitElement) {
500500 ?readonly = ${ this . readonly }
501501 @keydown = ${ this . handleInputKeyDown }
502502 @change = ${ this . handleInputChange } >
503+ <uui- butto n- group slot= "append" >
504+ ${ ! this . noFormatToggle
505+ ? html `<uui- butto n
506+ label= "Toggle color format"
507+ @click = ${ this . handleFormatToggle }
508+ class= "color-picker__toggle-format"
509+ ?dis abled= ${ this . disabled }
510+ compact>
511+ <span> ${ this . format } </ span>
512+ </ uui- butto n> `
513+ : '' }
514+ ${ hasEyeDropper
515+ ? html `<uui- butto n
516+ label= "Select a color"
517+ ?dis abled= ${ this . disabled || this . readonly }
518+ @click = ${ this . handleEyeDropper }
519+ compact>
520+ <uui- icon- regis try- essential>
521+ <uui- icon name= "colorpicker" > </ uui- icon>
522+ </ uui- icon- regis try- essential>
523+ </ uui- butto n> `
524+ : '' }
525+ </ uui- butto n- group>
503526 </ uui- input>
504- <uui- butto n- group>
505- ${ ! this . noFormatToggle
506- ? html `<uui- butto n
507- label= "Toggle color format"
508- @click = ${ this . handleFormatToggle }
509- class= "color-picker__toggle-format"
510- ?dis abled= ${ this . disabled }
511- compact>
512- <span> ${ this . format } </ span>
513- </ uui- butto n> `
514- : '' }
515- ${ hasEyeDropper
516- ? html `<uui- butto n
517- label= "Select a color"
518- ?dis abled= ${ this . disabled || this . readonly }
519- @click = ${ this . handleEyeDropper }
520- compact>
521- <uui- icon- regis try- essential>
522- <uui- icon name= "colorpicker" > </ uui- icon>
523- </ uui- icon- regis try- essential>
524- </ uui- butto n> `
525- : '' }
526- </ uui- butto n- group>
527527 </ div>
528528 ${ this . _renderSwatches ( ) }
529529 </ div>
@@ -584,6 +584,8 @@ export class UUIColorPickerElement extends LabelMixin('label', LitElement) {
584584 : host {
585585 --uui-look-outline-border : # ddd ;
586586 --uui-look-outline-border-hover : # aaa ;
587+ --uui-color-area-border-radius : var (--uui-border-radius-2 )
588+ var (--uui-border-radius-2 ) 0 0 ;
587589 font-size : 0.8rem ;
588590 color : var (--uui-color-text );
589591 display : block;
@@ -600,15 +602,15 @@ export class UUIColorPickerElement extends LabelMixin('label', LitElement) {
600602 background-color : var (--uui-color-surface );
601603 user-select : none;
602604 border : solid 1px var (--uui-color-border );
605+ border-radius : var (--uui-border-radius-2 );
603606 }
604607 .color-picker__user-input {
605608 display : flex;
606609 padding : 0 0.75rem 0.75rem 0.75rem ;
607610 }
608611 .color-picker__user-input uui-button {
609- border : var (--uui-input-border-width , 1px ) solid
612+ border-left : var (--uui-input-border-width , 1px ) solid
610613 var (--uui-input-border-color , var (--uui-color-border ));
611- border-left : none;
612614 }
613615 .color-picker__preview ,
614616 .color-picker__trigger {
@@ -720,6 +722,10 @@ export class UUIColorPickerElement extends LabelMixin('label', LitElement) {
720722 flex : 1 ;
721723 }
722724
725+ uui-button-group {
726+ height : 100% ;
727+ }
728+
723729 button .color-picker__trigger : focus-visible {
724730 outline : 2px solid var (--uui-color-focus );
725731 }
0 commit comments