File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
packages/react-core/src/components/Tabs Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -576,8 +576,12 @@ class Tabs extends Component<TabsProps, TabsState> {
576576 ) }
577577 { ...getOUIAProps ( Tabs . displayName , ouiaId !== undefined ? ouiaId : this . state . ouiaStateId , ouiaSafe ) }
578578 id = { id && id }
579- style = { { [ linkAccentLength . name ] : currentLinkAccentLength , [ linkAccentStart . name ] : currentLinkAccentStart } }
580579 { ...props }
580+ style = { {
581+ [ linkAccentLength . name ] : currentLinkAccentLength ,
582+ [ linkAccentStart . name ] : currentLinkAccentStart ,
583+ ...props . style
584+ } }
581585 >
582586 { expandable && isVertical && (
583587 < GenerateId >
Original file line number Diff line number Diff line change @@ -562,3 +562,15 @@ test('should render an enabled add button', () => {
562562 const addButton = screen . getByLabelText ( 'add-label' ) ;
563563 expect ( addButton ) . not . toBeDisabled ( ) ;
564564} ) ;
565+
566+ test ( `should render with custom inline style and accent position inline style` , ( ) => {
567+ render (
568+ < Tabs role = "region" style = "background-color: #12345;" >
569+ < Tab title = "Test title" eventKey = { 0 } >
570+ Tab Content
571+ </ Tab >
572+ </ Tabs >
573+ ) ;
574+
575+ expect ( screen . getByRole ( 'region' ) ) . toHaveStyle ( `background-color: #12345;--pf-v6-c-tabs--link-accent--start: 0px;` ) ;
576+ } ) ;
You can’t perform that action at this time.
0 commit comments