Skip to content

Commit b94ee9f

Browse files
committed
feat(ui-color-picker): add type=button to color preset's buttons for better form handling
INSTUI-4647
1 parent e086e31 commit b94ee9f

File tree

1 file changed

+1
-0
lines changed
  • packages/ui-color-picker/src/ColorPreset

1 file changed

+1
-0
lines changed

packages/ui-color-picker/src/ColorPreset/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ class ColorPreset extends Component<ColorPresetProps, ColorPresetState> {
273273
padding="0"
274274
cursor={this.props.disabled ? 'not-allowed' : 'auto'}
275275
as="button"
276+
type="button"
276277
aria-label={screenReaderLabel}
277278
{...(selectOnClick
278279
? { onClick: () => this.props.onSelect(color) }

0 commit comments

Comments
 (0)