(raw: string)
| 67 | let colorInput!: HTMLInputElement; |
| 68 | |
| 69 | const commitValue = (raw: string) => { |
| 70 | const normalized = normalizeOpaqueHexColor(raw); |
| 71 | if (normalized) { |
| 72 | props.onChange(normalized); |
| 73 | setText(normalized); |
| 74 | return true; |
| 75 | } |
| 76 | return false; |
| 77 | }; |
| 78 | |
| 79 | const selectBrandColor = (color: string) => { |
| 80 | setText(color); |
no test coverage detected