Skip to content

Commit 09b0f0e

Browse files
authored
fix(AnalyticalTable): update column resizer styles (#7859)
1 parent bfa6f2f commit 09b0f0e

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

packages/main/src/components/AnalyticalTable/AnalyticalTable.cy.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -401,13 +401,6 @@ describe('AnalyticalTable', () => {
401401
function doubleClickResizer(selector: string, columnName: string, outerWidth: number) {
402402
cy.get(selector)
403403
.realHover()
404-
.should(($el) => {
405-
// the CSS variable is applied too late in React 18.
406-
if (!reactVersion.startsWith('18')) {
407-
const color = getComputedStyle($el[0]).getPropertyValue('background-color');
408-
expect(color).to.equal(cssVarToRgb('--sapContent_DragAndDropActiveColor'));
409-
}
410-
})
411404
.dblclick()
412405
// fallback
413406
.realClick({ clickCount: 2 });

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,17 +440,22 @@
440440

441441
.resizer {
442442
display: inline-block;
443-
width: 3px;
443+
width: 5px;
444444
height: 100%;
445445
position: absolute;
446446
inset-block-end: 0;
447447
inset-block-start: 0;
448448
z-index: 1;
449449
cursor: col-resize;
450450

451-
&:hover,
451+
&:hover {
452+
background-color: var(--sapContent_DragAndDropActiveColor);
453+
opacity: 0.5;
454+
}
455+
452456
&:active {
453457
background-color: var(--sapContent_DragAndDropActiveColor);
458+
opacity: 1;
454459
}
455460
}
456461

0 commit comments

Comments
 (0)