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
[changed] Reworks TabbedArea and TabPane API #1091
Conversation
…actories Remove factories
…types Deprecate 'utils/CustomPropTypes' exporting in v0.25
Taking a very, very cursory glance, but it looks like this doesn't deprecate the components under the old names, but instead removes the old ones completely? |
This is super cool 👍 I haven't had a chance to dig in but I like the changes. As @taion tho we need to talk about a deprecation path for big changes like this where they are possible (the smaller className changes probably aren't deprecatable). Luckily it doesn't look like it will be too difficult in these instances :) |
+1 for adding className to the most outer element of the tabs. I think this should be a standard for every react-bootstrap component. Currently I have to work around this by having the following CSS selector |
Hi, I don't see a I'm also not sure if I added deprecation warnings correctly in #1099. |
@kennyw12 what I would do is submit this PR against the next major version branch: I probably would also split the commits up into maybe two commits for the sake of the change log, one for renaming components, and the other documenting the className shifts, since that is also a breaking change. |
Just to clarify, sounds like we should have 3 commits:
Would that work for you? If so, could you make the 0.26-rc tag? The Pivotal UI Team |
There is no need to put the className changes in I will look into a |
className, id, and style props for TabbedArea are passed to the outer div. Signed-off-by: Kenny Wang <kwang@pivotal.io>
* Deprecates TabbedArea and TabPane * Adds Tabs (formerly TabbedArea) and Tab (formerly TabPane) * `tab` attribute is renamed to `title` * Removes tests for TabbedArea and TabPane (because the deprecation warning fails them all * Update docs to use Tabs and Tab examples Signed-off-by: Caroline Taymor <ctaymor@pivotal.io>
When a branch for The Pivotal UI Team |
@kennyw12 hey there, this PR is still against |
I like the proposal #1091 (comment) of @jquense 👍 Then you won't need to make any additional PRs against And |
this is now like this: This is the way as I would doing it: > git remote -v
origin ...
upstream https://github.com/react-bootstrap/react-bootstrap.git (fetch)
upstream https://github.com/react-bootstrap/react-bootstrap.git (push) > git checkout master
> git fetch upstream
> git checkout v0.25-rc
> git branch tabs-rework
> git checkout tabs-rework then you make your changes and PR them. I hope it will help 🍒 this PR o/c will be closed and the new one will be created, as @jquense points out #1091 (comment) |
Alright, we made the same PR against Thanks! |
Renames TabbedArea to Tabs
Renames TabPane to Tab
Renames
tab
prop on Tab totitle
className on Tab only applies to .tab-pane
className, id, and style on Tabs applies to outermost div
Removes BootstrapMixin from Tabs to remove faulty documentation.
namely: bsSize and unsupported bsStyle options
#1054