Forward theme prop from Tabs to TabContent
The `Tabs` component takes a `theme`, but was not forwarding it on to its internal `TabContent` component, so it wasn’t possible to theme the `tabs` or `active` classes.old
parent
de532adea5
commit
8c20848fe8
|
@ -52,7 +52,7 @@ const factory = (Tab, TabContent) => {
|
|||
if (item.type === Tab) {
|
||||
headers.push(item);
|
||||
if (item.props.children) {
|
||||
contents.push(<TabContent children={item.props.children} />);
|
||||
contents.push(<TabContent children={item.props.children} theme={this.props.theme} />);
|
||||
}
|
||||
} else if (item.type === TabContent) {
|
||||
contents.push(item);
|
||||
|
|
Loading…
Reference in New Issue