Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 506212

Summary: Enable custom variant support for Table-GridLine
Product: [RT] RAP Reporter: Georg Breitschopf <georg.breitschopf>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ivan
Version: 3.0   
Target Milestone: 3.2 M3   
Hardware: PC   
OS: Windows NT   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=309004
https://git.eclipse.org/r/#/c/84211/
https://bugs.eclipse.org/bugs/show_bug.cgi?id=529727
Whiteboard:

Description Georg Breitschopf CLA 2016-10-19 09:59:47 EDT
As stated in https://bugs.eclipse.org/bugs/show_bug.cgi?id=309004#c3, custom variants do not work for Table-GridLine.
Comment 1 Georg Breitschopf CLA 2016-10-19 10:21:21 EDT
For clarification: The custom variant is not inherited by the Table, neither for TableItem or Table-GridLine.
Comment 2 Ivan Furnadjiev CLA 2016-11-04 04:23:26 EDT
Fixed with change https://git.eclipse.org/r/#/c/84211/
Comment 3 Georg Breitschopf CLA 2018-01-12 04:26:37 EST
Can confirm that custom variants work for Table-GridLine. However, the color of the vertical grid line is overwritten when a row is selected (or on hover).
Comment 4 Ivan Furnadjiev CLA 2018-01-12 04:54:05 EST
Maybe it is related to your style sheet. You have to define your selectors for horizontal/vertical lines with custom variant. If you think that this is a bug, please open a bugzilla and attach a demo project (with style sheet) that demonstrates the issue.
Comment 5 Georg Breitschopf CLA 2018-01-12 05:18:14 EST
Thanks for the hint. Unfortunately, defining a custom variant for both vertical and horizontal lines did not work either. I will re-test this issue in a demo project and open a new ticket if necessary.
Comment 6 Georg Breitschopf CLA 2018-01-12 07:52:35 EST
Now I was able to reproduce the problem in an demo project.
If a table row overlay is defined the grid lines disappear.

Example:
Table-RowOverlay:hover {
  background-color: #ddeeff;
}

In RAP 3.0 this overlay had no effect on grid lines.