File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
packages/react-core/src/components/Tabs Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,6 @@ export interface TabsProps
4747 children : TabsChild | TabsChild [ ] ;
4848 /** Additional classes added to the tabs */
4949 className ?: string ;
50- /** Additional inline styles added to the tabs */
51- style ?: React . CSSProperties ;
5250 /** Tabs background color variant */
5351 variant ?: 'default' | 'secondary' ;
5452 /** The index of the active tab */
@@ -470,7 +468,6 @@ class Tabs extends Component<TabsProps, TabsState> {
470468 render ( ) {
471469 const {
472470 className,
473- style,
474471 children,
475472 activeKey,
476473 defaultActiveKey,
@@ -579,12 +576,12 @@ class Tabs extends Component<TabsProps, TabsState> {
579576 ) }
580577 { ...getOUIAProps ( Tabs . displayName , ouiaId !== undefined ? ouiaId : this . state . ouiaStateId , ouiaSafe ) }
581578 id = { id && id }
579+ { ...props }
582580 style = { {
583581 [ linkAccentLength . name ] : currentLinkAccentLength ,
584582 [ linkAccentStart . name ] : currentLinkAccentStart ,
585- ...style
583+ ...props . style
586584 } }
587- { ...props }
588585 >
589586 { expandable && isVertical && (
590587 < GenerateId >
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ export const TabsDefault: React.FunctionComponent = () => {
2727 isBox = { isBox }
2828 aria-label = "Tabs in the default example"
2929 role = "region"
30+ style = { { border : '1px solid red' } }
3031 >
3132 < Tab eventKey = { 0 } title = { < TabTitleText > Users</ TabTitleText > } aria-label = "Default content - users" >
3233 Users
You can’t perform that action at this time.
0 commit comments