Skip to content

Commit 76b925b

Browse files
authored
fix(AnalyticalTable): border styles (#6506)
Fixes #6477
1 parent 5348750 commit 76b925b

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

packages/main/src/components/AnalyticalTable/AnalyticalTable.module.css

+8-4
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
position: absolute;
3232
inset-block-end: 0;
3333
inset-inline-start: 0;
34-
height: 1px;
34+
height: var(--_ui5wcr-AnalyticalTable-HeaderBorderWidth);
3535
width: 100%;
36-
background: var(--sapList_TableFooterBorder);
36+
background: var(--sapList_HeaderBorderColor);
3737
}
3838
}
3939

@@ -65,7 +65,7 @@
6565
height: var(--_ui5wcr-AnalyticalTableHeaderRowHeight);
6666

6767
div:first-child .th {
68-
border-inline-start: 1px solid var(--sapList_BorderColor);
68+
border-inline-start: 1px solid var(--_ui5wcr-AnalyticalTable-OuterBorderInline);
6969
}
7070
}
7171

@@ -106,7 +106,8 @@
106106
border-block-start: var(--_ui5wcr-AnalyticalTable-OuterBorderBlock);
107107
border-block-end: var(--_ui5wcr-AnalyticalTable-HeaderBorderWidth) solid var(--sapList_HeaderBorderColor);
108108
border-inline-end: 1px solid var(--sapList_BorderColor);
109-
padding-inline: 0.5rem;
109+
padding-inline-end: 0.5rem;
110+
padding-inline-start: calc(0.5rem - var(--_ui5wcr-AnalyticalTable-HeaderBorderWidth));
110111
text-align: start;
111112
box-sizing: border-box;
112113

@@ -223,6 +224,9 @@
223224

224225
&:first-child {
225226
border-inline-start: var(--_ui5wcr-AnalyticalTable-OuterCellBorder);
227+
&[data-column-id-cell='__ui5wcr__internal_highlight_column'] {
228+
border-inline: none;
229+
}
226230
}
227231

228232
&:last-child {

packages/main/src/components/AnalyticalTable/hooks/useRowHighlight.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ import type { ReactTableHooks, TableInstance } from '../types/index.js';
44

55
const baseStyles = {
66
width: '100%',
7-
height: '100%'
7+
// border
8+
height: 'calc(100% - 1px)',
9+
alignSelf: 'start'
810
};
911

1012
const HighlightColors = {

0 commit comments

Comments
 (0)