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

feat(ToggleButtonGroup): Add vertical option #5371

Merged
merged 4 commits into from
Aug 10, 2020
Merged

feat(ToggleButtonGroup): Add vertical option #5371

merged 4 commits into from
Aug 10, 2020

Conversation

eisnstein
Copy link
Contributor

I am using react-bootstrap in a React/TypeScript project and after upgrading from 1.0.1 to 1.3.0 TypeScript tells me, that "Property 'vertical' does not exist on..." on the ToggleButtonGroup component.

So here I added the vertical property to the ToggleButtonGroup component.

(right now I am making heavy use of // @ts-ignore before every ToggleButtonGroup and it works as expected)

Copy link
Member

@taion taion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we make both ToggleButtonRadioProps and ToggleButtonCheckboxProps extend Omit<ButtonGroupProps, 'toggle'>, then omit the special-case handling for vertical? that way we'll fix size as well

@eisnstein
Copy link
Contributor Author

Added change as proposed.

@taion taion merged commit c049dac into react-bootstrap:master Aug 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants