forgejo/templates/shared
delvh 91c8261e2c
Add tooltips for MD editor buttons and add muted class for buttons (#23896)
Followup of #23876 according to my unreleased review demanding tooltips.
Additionally
- add a `muted` equivalent for buttons
- convert `switch to legacy` to an actual button
- enroll `switch to legacy` in the builtin pseudo focus cycle
- remove spaces between the buttons

The effect of the `muted` class is what you would expect: The button
loses all of its normal styling, and is defined only by its content instead.
This will help reduce a11y infractions in the future, as that was one of
the major points why people didn't use `<button>` tags and decided on a
bad fix (i.e. through `<div>`s) instead.

## Appearance

![image](https://user-images.githubusercontent.com/51889757/229510842-337378e5-faa5-4886-a910-08614c0c233d.png)

---------

Co-authored-by: silverwind <me@silverwind.io>
2023-04-11 15:26:18 +08:00
..
actions Use data-tooltip-content for tippy tooltip (#23649) 2023-03-24 18:35:38 +08:00
datetime Use auto-updating, natively hoverable, localized time elements (#23988) 2023-04-11 01:01:20 +02:00
secrets Convert <div class="button"> to <button class="button"> (#23337) 2023-03-14 11:34:09 +08:00
user Fix no user listed in org teams page (#22979) 2023-02-19 12:57:49 +08:00
combomarkdowneditor.tmpl Add tooltips for MD editor buttons and add muted class for buttons (#23896) 2023-04-11 15:26:18 +08:00
issuelist.tmpl Use auto-updating, natively hoverable, localized time elements (#23988) 2023-04-11 01:01:20 +02:00
searchbottom.tmpl Move helpers to be prefixed with gt- (#22879) 2023-02-13 17:59:59 +00:00