Equal icon indicating copy to clipboard operation
Equal copied to clipboard

[ Bug Report ] Duplicate attribute 'type' on button

Open gwen-bo opened this issue 3 years ago • 2 comments

Environment

- **node**:
- **equal**:
N/A

Current Behavior

There's currently an overlap between the native attribute type of a button (e.g. <button type="submit">) and the type attribute indicating the colour type of the button.

Expected Behavior

Different naming convention for the type attribute that is used to indicate the colour type of the button. Keeping in mind the native attributes of the elements.

Steps To Reproduce

  1. Create a button, with type submit and type primary,
  2. Code editor displays error: Duplicate attribute 'type'

Anything else?

No response

gwen-bo avatar Feb 07 '22 15:02 gwen-bo

I've seen component libraries use native-type in the past to avoid these issues.

BryceBarbara avatar Apr 24 '22 00:04 BryceBarbara

any idea. ?

fewm avatar Jun 21 '22 15:06 fewm

Fixed in v0.9

quatrochan avatar Jan 16 '23 09:01 quatrochan