Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions packages/@adobe/spectrum-css-temp/components/table/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ governing permissions and limitations under the License.
/* specificity must be higher than `.spectrum-Icon` */
svg.spectrum-Table-sortedIcon {
display: none;
flex: 0 0 auto;
margin-inline-start: var(--spectrum-table-header-sort-icon-gap);
min-inline-size: var(--spectrum-icon-arrow-down-small-width);

Expand All @@ -42,8 +43,16 @@ svg.spectrum-Table-sortedIcon {
border-right-width: 1px;
border-right-style: solid;
}
.spectrum-Table-headCellContents {
display: inline-block;
min-inline-size: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}

.spectrum-Table-headCell {
display: flex;
box-sizing: border-box;
font-size: var(--spectrum-table-header-text-size);
font-weight: var(--spectrum-table-header-text-font-weight);
Expand Down
2 changes: 1 addition & 1 deletion packages/@react-spectrum/table/src/TableView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ function TableColumnHeader({column}) {
}>
{columnProps.hideHeader ?
<VisuallyHidden>{column.rendered}</VisuallyHidden> :
column.rendered
<div className={classNames(styles, 'spectrum-Table-headCellContents')}>{column.rendered}</div>
}
{columnProps.allowsSorting &&
<ArrowDownSmall UNSAFE_className={classNames(styles, 'spectrum-Table-sortedIcon')} />
Expand Down