Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ Bug Report ] Duplicate attribute 'type' on button #273

Closed
gwen-bo opened this issue Feb 7, 2022 · 3 comments
Closed

[ Bug Report ] Duplicate attribute 'type' on button #273

gwen-bo opened this issue Feb 7, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@gwen-bo
Copy link

gwen-bo commented Feb 7, 2022

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 gwen-bo added the bug Something isn't working label Feb 7, 2022
@BryceBarbara
Copy link

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

@fewm
Copy link

fewm commented Jun 21, 2022

any idea. ?

@quatrochan
Copy link
Collaborator

Fixed in v0.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants