You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/templates/shared
wxiaoguang 704f3aa91c
Fine tune markdown editor toolbar (#24046)
1. Remove unnecessary `btn-link` `muted` classes
* Link is link, button is button, I can't see a real requirement to make
a button like a link.
* If anyone insists, please help to show me real example from modern
frameworks / websites, how and why they do so.
    * No need to duplicate a lot of class names on similar elements
* Declare styles clearly, for example, `markdown-toolbar` itself should
have `display: flex`, but not use `gt-df` to overwrite the `display:
block`.
2. Remove unnecessary `role` attribute
    * https://github.com/github/markdown-toolbar-element/issues/70
* The `markdown-toolbar-element` does want to add `role=button`, but
there is a bug.
* So we do the similar thing as upstream does (add the role by JS),
until they fix their bugs.
3. Indent `markdown-switch-easymde` (before it doesn't have a proper
indent)

Screenshot:

![image](https://user-images.githubusercontent.com/2114189/231090912-f6ba01cb-d0eb-40ad-bf8c-ffc597d9a778.png)
1 year ago
..
actions Use data-tooltip-content for tippy tooltip (#23649) 1 year ago
datetime Use auto-updating, natively hoverable, localized time elements (#23988) 1 year ago
secrets Convert `<div class="button">` to `<button class="button">` (#23337) 1 year ago
user Fix no user listed in org teams page (#22979) 1 year ago
combomarkdowneditor.tmpl Fine tune markdown editor toolbar (#24046) 1 year ago
issuelist.tmpl Use auto-updating, natively hoverable, localized time elements (#23988) 1 year ago
searchbottom.tmpl Move helpers to be prefixed with `gt-` (#22879) 1 year ago