File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
ui/components/color-picker Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ export const ColorPickerSummary = (props) => {
82
82
sprite = "utility"
83
83
symbol = "down"
84
84
/>
85
- < span className = "slds-assistive-text" > Choose a color</ span >
85
+ < span className = "slds-assistive-text" > Choose a color. Current color: #5679C0 </ span >
86
86
</ Button >
87
87
88
88
< FormElement
@@ -118,7 +118,12 @@ export const ColorPickerSwatches = (props) => {
118
118
< ul className = "slds-color-picker__swatches" role = { swatchesRole } >
119
119
{ swatchColors . map ( ( swatch , index ) =>
120
120
< li key = { _ . uniqueId ( 'color-picker-swatch-' ) } className = "slds-color-picker__swatch" role = "presentation" >
121
- < a className = "slds-color-picker__swatch-trigger" role = { linkRole } href = "#" >
121
+ < a
122
+ className = "slds-color-picker__swatch-trigger"
123
+ href = "#"
124
+ role = { linkRole }
125
+ tabIndex = { index === 0 ? 0 : - 1 }
126
+ >
122
127
< Swatch color = { swatch } index = { index } />
123
128
</ a >
124
129
</ li >
You can’t perform that action at this time.
0 commit comments