diff --git a/packages/clay-color-picker/src/index.tsx b/packages/clay-color-picker/src/index.tsx index 0ce6b44761..f94d8fe5de 100644 --- a/packages/clay-color-picker/src/index.tsx +++ b/packages/clay-color-picker/src/index.tsx @@ -197,25 +197,6 @@ const ClayColorPicker: React.FunctionComponent = ({ return (
- {name && ( - - useNative ? onValueChange(e.target.value) : null - } - ref={valueInputRef} - style={{ - height: 0, - margin: 0, - padding: 0, - visibility: 'hidden', - width: 0, - }} - type={useNative ? 'color' : 'text'} - value={value ? `${isHex ? '#' : ''}${value}` : ''} - /> - )} - {title && } = ({ small={small} > + {name && ( + + useNative + ? onValueChange(e.target.value) + : null + } + ref={valueInputRef} + style={{ + height: 0, + position: 'absolute', + visibility: 'hidden', + width: 0, + }} + tabIndex={-1} + type={useNative ? 'color' : 'text'} + value={ + value ? `${isHex ? '#' : ''}${value}` : '' + } + /> + )} +