Copilot commented on code in PR #9526:
URL: https://github.com/apache/texera/pull/9526#discussion_r4689836508


##########
frontend/src/app/dashboard/component/user/user-dataset/user-dataset-explorer/user-dataset-version-filetree/user-dataset-version-filetree.component.scss:
##########
@@ -61,3 +61,18 @@
   display: flex;
   align-items: center;
 }
+
+/* The picked file has to read as picked. The library's own active colours 
(#beebff behind a 1px
+   grey inset shadow) belong to no palette this app uses, so the row takes the 
ant blue-1 (#e6f7ff)
+   fill the dashboard's selected list rows and the workspace's selected cards 
share, with ant's
+   primary blue as the ring and text colour, as the workspace's selected cards 
ring. The :hover copy
+   keeps this fill on the picked row rather than the library's hover tint. */
+:host ::ng-deep .file-tree-container 
.node-content-wrapper.node-content-wrapper-active,
+:host ::ng-deep .file-tree-container 
.node-content-wrapper.node-content-wrapper-active:hover {
+  background-color: #e6f7ff;
+  color: #1890ff;

Review Comment:
   The selected filename inherits `#1890ff` on `#e6f7ff`, which has a contrast 
ratio of only 2.95:1—below WCAG AA's 4.5:1 requirement for normal text. 
Selecting a file therefore makes its name harder to read for low-vision users. 
Please keep the blue background/ring but use darker text (for example, 
`#0050b3` gives 6.83:1), and update the browser spec's expected text colour.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to