-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
feat(form-radio): Support button style radios #728
Conversation
Adds new Boolean prop `buttons` (defaults to `false`) that wil enable the radios to be rendered with the look of buttons http://v4-alpha.getbootstrap.com/components/buttons/#checkbox-and-radio-buttons Currently the buttons can only be rendered with the same variant specified by the prop `button-variant`. Different variants for each radio button ar currently not supported (not without altering the `form-options.js` mixin. `stacked` button radios are supported,, but `state` is not supported for button radios
Only apply 'focus' class on label element
docs/components/form-radio/README.md
Outdated
@@ -50,7 +50,7 @@ Please see options in [`<b-form-select>`](./form-select) docs for details on pas | |||
options (value array) to `<b-form-radio>` | |||
|
|||
### Size | |||
Constrol the size of the radio text by setting the prop `size` to either `sm` for small or | |||
Control the size of the radio text by setting the prop `size` to either `sm` for small or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good, only one offer - if it's possible, to add live example of button-looking radios in addiction to html code example.,
Example was missing a comma, so not it is working. |
Adds new Boolean prop
buttons
(defaults tofalse
) that wil enable the radios to be rendered with the look of buttons.http://v4-alpha.getbootstrap.com/components/buttons/#checkbox-and-radio-buttons
Currently the buttons can only be rendered with the same variant specified by the prop
button-variant
. Different variants for each radio button ar currently not supported (not without altering theform-options.js
mixin).stacked
button radios are supported,, butstate
is not supported for button radios