Skip to content
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "office-ui-fabric-react",
"comment": "Pivot: include className in props to override styles",
"type": "patch"
}
],
"packageName": "office-ui-fabric-react",
"email": "naethell@microsoft.com"
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import {
KeyCodes,
css,
getId,
getNativeProps,
divProperties,
createRef
} from '../../Utilities';
import { CommandButton } from '../../Button';
Expand Down Expand Up @@ -101,8 +103,10 @@ export class PivotBase extends BaseComponent<IPivotProps, IPivotState> {
}

public render(): JSX.Element {
const divProps = getNativeProps(this.props, divProperties);

return (
<div>
<div { ...divProps } >

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit, space at end.

Also update tests :)

{ this._renderPivotLinks() }
{ this._renderPivotItem() }
</div>
Expand Down