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

add type="submit" to bx-btn #9700

Closed
fedorzajac opened this issue Nov 30, 2022 · 2 comments
Closed

add type="submit" to bx-btn #9700

fedorzajac opened this issue Nov 30, 2022 · 2 comments
Assignees
Labels

Comments

@fedorzajac
Copy link

The problem

to be able to use bx-btn as native form element (preferably other elements as well) with carbon style and features. and not be dependent on any external js apart from js provided by carbon-web-components for easier incorporation into rails framework.

The solution

to be able to pass type="submit" into inner shadowed button element. like

<bx-btn type="submit"> 
or
<bx-btn submit>

### Application/website

internal

### Business priority

Low Priority = release date is not dependent on fix or not upcoming

### What time frame would this ideally be needed by (if applicable)

_No response_

### Examples

_No response_

### Code of Conduct

- [X] I agree to follow this project's [Code of Conduct](https://github.com/carbon-design-system/carbon-for-ibm-dotcom/blob/main/.github/CODE_OF_CONDUCT.md)
- [X] I checked the [current issues](https://github.com/carbon-design-system/carbon-for-ibm-dotcom/issues) for duplicate issues
@stale
Copy link

stale bot commented May 27, 2023

We've marked this issue as stale because there hasn't been any activity for 60 days. If there's no further activity on this issue in the next three days then we'll close it. You can keep the conversation going with just a short comment. Thanks for your contributions.

@kennylam
Copy link
Member

Should match types available in React component.

/**
  * Optional prop to specify the type of the Button
  */
  type: PropTypes.oneOf(['button', 'reset', 'submit']),

@emyarod emyarod self-assigned this Jan 18, 2024
@emyarod emyarod moved this from Backlog to Doing in Carbon for IBM.com Feb 5, 2024
@kennylam kennylam moved this from Doing to Done in Carbon for IBM.com Feb 19, 2024
@emyarod emyarod closed this as completed Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

8 participants