-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve accessibility when (re-)viewing files #24817
Improve accessibility when (re-)viewing files #24817
Conversation
Visually, nothing should have changed. Changes include - Convert most `<a [no href]>` to `<button>` when (re-)viewing files - `<a class="ui button">` can now be clicked (again?) using <kbd>Enter</kbd> - The `(un)escape file`, the `expand section` and the `expand/collapse file` buttons can now be focused (and subsequently clicked using only the keyboard) - Previously, pressing <kbd>Space</kbd> on the `View file` checkbox did nothing as this checkbox listened to the wrong event listener. Now, you can use the keyboard for this checkbox too. The `add code comment` button has been left inaccessible for now as it requires quite a bit of extra logic so that it is unhidden when it is focused (you can otherwise focus it without seeing it as you are not hovering on the corresponding line).
a6a7967
to
140b366
Compare
Sorry, pushed some unrelated commits, rebasing... |
140b366
to
306767b
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Okay, apparently my |
@silverwind @wxiaoguang anything else to do here? |
Don't think so, but I will give it one final look a bit later. |
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.
Overall LGTM. Wait for silverwind's final look 😄
@silverwind I do have to say, that's a pretty long final look… 😁 |
Maybe not that long, it hasn't been one day yet 😄 If I am busy on other things, I also would be away from keyboard for several days. |
* main: Rewrite logger system (go-gitea#24726) Support Copy Link for video attachments (go-gitea#24833) Fix video width overflow in markdown, and other changes to match img (go-gitea#24834) Improve accessibility when (re-)viewing files (go-gitea#24817)
* giteaofficial/main: (27 commits) Fix regression: access log template, gitea manager cli command (go-gitea#24838) Merge message template support for rebase without merge commit (go-gitea#22669) [skip ci] Updated licenses and gitignores Support wildcard in email domain allow/block list (go-gitea#24831) Change `--font-weight-bold` to `--font-weight-semibold` and 600 value, introduce new font weight variables (go-gitea#24827) Rewrite logger system (go-gitea#24726) Support Copy Link for video attachments (go-gitea#24833) Fix video width overflow in markdown, and other changes to match img (go-gitea#24834) Improve accessibility when (re-)viewing files (go-gitea#24817) Refactor rename user and rename organization (go-gitea#24052) Use `CommentList` instead of `[]*Comment` (go-gitea#24828) Fix topics deleted via API not being deleted in org page (go-gitea#24825) Return `404` in the API if the requested webhooks were not found (go-gitea#24823) Decouple the different contexts from each other (go-gitea#24786) [skip ci] Updated translations via Crowdin Add RTL rendering support to Markdown (go-gitea#24816) [skip ci] Updated translations via Crowdin Update JS dependencies (go-gitea#24815) Fix duplicate tooltip hiding (go-gitea#24814) Mute repo names in dashboard repo list (go-gitea#24811) ...
Visually, nothing should have changed.
Changes include
<a [no href]>
to<button>
when (re-)viewing files:<a [no href]>
are, by HTML definition, not a link and hence cannot be focused<a class="ui button">
can now be clicked (again?) using Enter.ui.button
elements disabled it for links somehow(un)escape file
, theexpand section
and theexpand/collapse file
buttons can now be focused (and subsequently clicked using only the keyboard)View file
checkbox to mark the file as viewed.The
add code comment
button has been left inaccessible for now as it requires quite a bit of extra logic so that it is unhidden when it is focused (you can otherwise focus it without seeing it as you are not hovering on the corresponding line).