@@ -7,6 +7,7 @@ import { useStableCallback, useUniqueId } from '@cloudscape-design/component-too
77import { getIsRtl , getLogicalBoundingClientRect , getLogicalPageX } from '@cloudscape-design/component-toolkit/internal' ;
88
99import { useSingleTabStopNavigation } from '../../internal/context/single-tab-stop-navigation-context.js' ;
10+ import { useVisualRefresh } from '../../internal/hooks/use-visual-mode' ;
1011import { KeyCode } from '../../internal/keycode' ;
1112import handleKey , { isEventLike } from '../../internal/utils/handle-key' ;
1213import { DEFAULT_COLUMN_WIDTH } from '../use-column-widths' ;
@@ -46,6 +47,8 @@ export function Resizer({
4647 onWidthUpdate = useStableCallback ( onWidthUpdate ) ;
4748 onWidthUpdateCommit = useStableCallback ( onWidthUpdateCommit ) ;
4849
50+ const isVisualRefresh = useVisualRefresh ( ) ;
51+
4952 const separatorId = useUniqueId ( ) ;
5053 const resizerToggleRef = useRef < HTMLButtonElement > ( null ) ;
5154 const resizerSeparatorRef = useRef < HTMLSpanElement > ( null ) ;
@@ -195,7 +198,8 @@ export function Resizer({
195198 ref = { resizerToggleRef }
196199 className = { clsx (
197200 styles . resizer ,
198- ( resizerHasFocus || showFocusRing || isKeyboardDragging ) && styles [ 'has-focus' ]
201+ ( resizerHasFocus || showFocusRing || isKeyboardDragging ) && styles [ 'has-focus' ] ,
202+ isVisualRefresh && styles [ 'is-visual-refresh' ]
199203 ) }
200204 onMouseDown = { event => {
201205 if ( event . button !== 0 ) {
@@ -231,7 +235,11 @@ export function Resizer({
231235 data-focus-id = { focusId }
232236 />
233237 < span
234- className = { clsx ( styles [ 'divider-interactive' ] , isDragging && styles [ 'divider-active' ] ) }
238+ className = { clsx (
239+ styles [ 'divider-interactive' ] ,
240+ isDragging && styles [ 'divider-active' ] ,
241+ isVisualRefresh && styles [ 'is-visual-refresh' ]
242+ ) }
235243 data-awsui-table-suppress-navigation = { true }
236244 ref = { resizerSeparatorRef }
237245 id = { separatorId }
0 commit comments