-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Include focus styling on button #1648
Include focus styling on button #1648
Comments
I am not 100% sure why they do this, but it is not for every button. It is only for buttons which match |
I think I can do this, pls assign it to me |
It's all your @Ashniu123 |
Thanks!
Sounds good? |
I would try to import and use the existing |
* feat(ButtonToggle): add focus styling on button and toggle resolves issue #1648 * refactor(ButtonToggle): user can define other actions without interfering with component execute user defined onClick,onFocus,onBlur functions before its own * refactor(ButtonToggle): no toggle if button is disabled the user defined onClick function will still execute though, as intended * refactor(ButtonToggle): add missing event param for onClick * refactor(ButtonToggle): call user's onClick, onFocus, onBlur if it exists Add defaultProps to pass default values * refactor(ButtonToggle): rename default value for toggle. add file to index.js * test(ButtonToggle): add test cases for component * Update ButtonToggle.js * Update ButtonToggle.js
button
8.0.1
The bootstrap 4 js adds
focus
class to the styling of buttons on thefocus
event and removes it on theblur
event. This helps for keyboard navigation of buttons.https://github.com/twbs/bootstrap/blob/3d12b541c488ea09efced2fb987fcbf384c656bb/js/src/button.js#L164-L178
Reactstrap should do the same.
The text was updated successfully, but these errors were encountered: