File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
packages/react-core/src/components/Tabs Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -361,9 +361,9 @@ class Tabs extends Component<TabsProps, TabsState> {
361
361
...( shouldInitializeStyle && { isInitializingAccent : true } )
362
362
} ) ;
363
363
364
- setTimeout ( ( ) => {
364
+ requestAnimationFrame ( ( ) => {
365
365
this . setState ( { isInitializingAccent : false } ) ;
366
- } , 0 ) ;
366
+ } ) ;
367
367
} ;
368
368
369
369
handleResize = ( ) => {
@@ -438,6 +438,10 @@ class Tabs extends Component<TabsProps, TabsState> {
438
438
} else if ( prevState . enableScrollButtons && ! enableScrollButtons ) {
439
439
this . setState ( { showScrollButtons : false } ) ;
440
440
}
441
+
442
+ if ( prevState . uncontrolledIsExpandedLocal !== this . state . uncontrolledIsExpandedLocal ) {
443
+ this . setAccentStyles ( true ) ;
444
+ }
441
445
}
442
446
443
447
static getDerivedStateFromProps ( nextProps : TabsProps , prevState : TabsState ) {
You can’t perform that action at this time.
0 commit comments