Skip to content

Commit abbdc20

Browse files
authored
Fix resize indicator for RTL (#3654)
* Fix resize indicator for RTL * fix column header button padding
1 parent e0d4f96 commit abbdc20

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/@adobe/spectrum-css-temp/components/table/index.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@ svg.spectrum-Table-sortedIcon {
106106
}
107107
.spectrum-Table-headCellButton {
108108
box-sizing: border-box;
109-
padding: var(--spectrum-table-header-padding-y) 0 var(--spectrum-table-header-padding-y) var(--spectrum-table-header-padding-x);
109+
padding-block-start: var(--spectrum-table-header-padding-y);
110+
padding-inline-end: 0;
111+
padding-block-end: var(--spectrum-table-header-padding-y);
112+
padding-inline-start: var(--spectrum-table-header-padding-x);
110113

111114
/* truncate text with ellipsis */
112115
overflow: hidden;

packages/@react-spectrum/table/src/TableView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ function TableVirtualizer({layout, collection, lastResizeInteractionModality, fo
508508
{state.visibleViews[1]}
509509
{columnState.currentlyResizingColumn != null && <div
510510
className={classNames(styles, 'spectrum-Table-bodyResizeIndicator')}
511-
style={{left: `${resizerPosition}px`, height: `${Math.max(state.virtualizer.contentSize.height, state.virtualizer.visibleRect.height)}px`, display: 'block'}} /> }
511+
style={{[direction === 'ltr' ? 'left' : 'right']: `${resizerPosition}px`, height: `${Math.max(state.virtualizer.contentSize.height, state.virtualizer.visibleRect.height)}px`, display: 'block'}} /> }
512512
</ScrollView>
513513
</div>
514514
</FocusScope>

0 commit comments

Comments
 (0)