-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[SG-43144]: Tables in code excerpts should use headers for line numbers #43389
Conversation
Bundle size report 📦
Look at the Statoscope report for a full comparison between the commits 02452ce and b74554d or learn more. Open explanation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @umpox @limitedmage
Since layout and html structure of the line-number
and code
has been formulated on the backend part of the codebase, want to confirm with you before making the change in the following files to update the HTML tag used.
cmd/frontend/internal/highlight/highlight.go
cmd/frontend/internal/highlight/html.go
WDYT?
Yes, looks like fixing this does require backend changes. Let's go ahead and do them. If you need help with this let me know. |
cb3ebdc
to
93af0ba
Compare
@limitedmage Sorry, we missed the required changes in These are steps:
Could you please help to recheck? |
@camdencheek or @slimsag can you please review the backend code for this? Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Backend looks good to me 👍
@gitstart-sourcegraph I'm running the change and it works great in search results, but it breaks line numbers in the blob view: It looks like we have quite a few places where we look for |
@gitstart-sourcegraph Looks like there are some regressions in the Percy tests, can you take a look? |
@limitedmage we updates PRs to fix UI diffs. Could you please help to check if we missed anything else? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your thoroughness with this larger-than-expected change. I tested it locally and it looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Description
ArcToolkit says the tables used for search results are confusing because a11y tools can't tell if the table is tabular data or used for layout purposes. We need to clarify this.
Ref
SG Issue
Gitstart Ticket
Success criteria
The table should switch the line numbers from being
<td>
to<th>
. This will clarify that this is indeed a table with tabular data. ArcToolkit should not show alerts about tables.Test plan
App preview:
Check out the client app preview documentation to learn more.