forgejo/web_src/css
delvh e95b42e187
Improve accessibility when (re-)viewing files (#24817)
Visually, nothing should have changed.
Changes include
- Convert most `<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
<kbd>Enter</kbd>
- Previously, the installed keypress handler on `.ui.button` elements
disabled it for links somehow
- The `(un)escape file`, the `expand section` and the `expand/collapse
file` buttons can now be focused (and subsequently clicked using only
the keyboard)
- You can now press <kbd>Space</kbd> on a focused `View file` checkbox
to mark the file as viewed.
- previously, this was impossible as this checkbox listened on the wrong
event listener

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).

---------

Co-authored-by: silverwind <me@silverwind.io>
2023-05-21 20:47:41 +00:00
..
chroma Add --font-weight-bold and set previous bold to 601 (#24307) 2023-04-24 13:46:00 -04:00
codemirror Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
editor Reorganize CSS files (#24739) 2023-05-16 00:13:30 -04:00
features Reorganize CSS files (#24739) 2023-05-16 00:13:30 -04:00
markup Add RTL rendering support to Markdown (#24816) 2023-05-20 23:02:52 +02:00
modules Fix OAuth loading state (#24788) 2023-05-18 11:50:11 +00:00
repo Reorganize CSS files (#24739) 2023-05-16 00:13:30 -04:00
shared Clean up various avatar dimensions (#24701) 2023-05-14 14:15:59 +00:00
standalone Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
themes Rework label colors (#24790) 2023-05-19 16:30:24 +00:00
actions.css Reorganize CSS files (#24739) 2023-05-16 00:13:30 -04:00
admin.css Fix config list overflow and layout (#24312) 2023-04-30 13:32:07 -04:00
base.css Add RTL rendering support to Markdown (#24816) 2023-05-20 23:02:52 +02:00
dashboard.css Remove highlight in repo list (#24675) 2023-05-12 10:00:17 +02:00
explore.css Improve "new-menu" (#24465) 2023-05-01 12:08:37 -04:00
font_i18n.css Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
form.css Rework Oauth login buttons, swap github logo to monocolor (#24740) 2023-05-15 22:46:51 +00:00
helpers.css Remove background on user dashboard filter bar (#24779) 2023-05-18 09:27:29 +02:00
home.css Start cleaning the messy ".ui.left / .ui.right", improve label list page, fix stackable menu (#24393) 2023-04-29 07:35:59 -04:00
index.css Reorganize CSS files (#24739) 2023-05-16 00:13:30 -04:00
install.css Add --font-weight-bold and set previous bold to 601 (#24307) 2023-04-24 13:46:00 -04:00
org.css Reorganize CSS files (#24739) 2023-05-16 00:13:30 -04:00
repo.css Improve accessibility when (re-)viewing files (#24817) 2023-05-21 20:47:41 +00:00
review.css Improve accessibility when (re-)viewing files (#24817) 2023-05-21 20:47:41 +00:00
user.css Improve button-ghost, remove tertiary button (#24692) 2023-05-13 20:38:22 +00:00