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

Ensure Consistent API for custom variants #6398

Merged
merged 1 commit into from Jul 15, 2022

Conversation

ryanolee
Copy link
Contributor

What

This PR follows on from #4461 and aims to ensure consistency when using custom variants across react bootstrap. Currently a number of components do not properly support custom variants in the way the issue was resolved as not everything uses Variant as a base. (Such as Navbar).

Why

Given this looks to be the agreed upon approach for custom variants all variant attributes might need a type of "| string" adding

How

By adding "| string" to the remaining typedefs where variant is still using a Union of hardcoded values. This should not cause any bc breaks as it is extending hardcoded unions of strings.

Thanks for looking at this!

@ryanolee ryanolee changed the title Ensure Consistent API for custom varients Ensure Consistent API for custom variants Jul 12, 2022
@kyletsang kyletsang merged commit 8a81903 into react-bootstrap:master Jul 15, 2022
@kyletsang
Copy link
Member

Thanks!

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