Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(AnalyticalTable): remove padding and scrollbar from select-all header cell #536

Merged
merged 2 commits into from
May 22, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ export const ColumnHeader: FC<ColumnHeaderProps> = (props: ColumnHeaderProps) =>
const modifiedStyles: CSSProperties = {
cursor: hasPopover ? 'pointer' : 'auto'
};
if (column.id === '__ui5wcr__internal_selection_column') {
modifiedStyles.padding = 0;
modifiedStyles.overflowY = 'hidden';
}
if (dragOver) {
modifiedStyles.borderLeft = `3px solid ${ThemingParameters.sapSelectedColor}`;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1547,7 +1547,7 @@ exports[`AnalyticalTable Tree Table 1`] = `
>
<div
class="TableColumnHeader-header-0"
style="cursor: auto;"
style="cursor: auto; padding: 0px; overflow-y: hidden;"
>
<span
class="Text-text-0 Text-noWrap-0 TableColumnHeader-text-0"
Expand Down Expand Up @@ -5028,7 +5028,7 @@ exports[`AnalyticalTable with highlight row 1`] = `
>
<div
class="TableColumnHeader-header-0"
style="cursor: auto;"
style="cursor: auto; padding: 0px; overflow-y: hidden;"
>
<span
class="Text-text-0 Text-noWrap-0 TableColumnHeader-text-0"
Expand Down
2 changes: 1 addition & 1 deletion packages/main/src/components/AnalyticalTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ const AnalyticalTable: FC<TableProps> = forwardRef((props: TableProps, ref: Ref<
return (
// eslint-disable-next-line react/jsx-key
<header {...headerProps} role="rowgroup">
{headerGroup.headers.map((column, index) => (
{headerGroup.headers.map((column) => (
// eslint-disable-next-line react/jsx-key
<ColumnHeader
{...column.getHeaderProps()}
Expand Down