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

Is it possible to add HTML Attributes on <Button>/<ButtonBase>? #9585

Closed
1 task done
antiwebbite opened this issue Dec 21, 2017 · 4 comments
Closed
1 task done

Is it possible to add HTML Attributes on <Button>/<ButtonBase>? #9585

antiwebbite opened this issue Dec 21, 2017 · 4 comments
Labels
support: question Community support but can be turned into an improvement

Comments

@antiwebbite
Copy link

antiwebbite commented Dec 21, 2017

  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Have access to add html attributes to <Button> and <ButtonBase>. For example be able to set tabindex to -1 on a button.

Current Behavior

Based on the documentation, there does not appear to be access to these attributes.

Links: ButtonBase | Button

Context

I have buttons that are hidden until the user hovers over a section. I don't want them to accidentally tab into them and activate them.

@mbrookes mbrookes added the support: question Community support but can be turned into an improvement label Dec 21, 2017
@mbrookes
Copy link
Member

@antiwebbite Please actually search the issues, rather than just ticking the box. This was literally discussed yesterday. #9575

Also, please use StackOverflow or gitter for how-to questions, and keep issues for bugs and feature requests.

@antiwebbite
Copy link
Author

Okay apologies, I actually looked at that ticket and it has to do with TextField which has InputProps but Button and ButtonGroup doesn't seem to have anything like that.

I was asking if this could be added in the future. Are you saying this is possible currently and I am just missing it and I should ask on StackOverflow?

Thanks!

@mbrookes
Copy link
Member

It's possible and documented. If you want to ask in SO, and link to the question here, I'll answer it for you there.

@antiwebbite
Copy link
Author

LINK

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support: question Community support but can be turned into an improvement
Projects
None yet
Development

No branches or pull requests

2 participants