-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Fine tune markdown editor toolbar #24046
Conversation
Just to note, the |
If upstream fixes the bug, or the JS code causes any problem, I will do following fix. |
I think we should generally prefer setting attributes via HTML. It works even when JS is disabled and is instantly correct on page load. |
|
Keep in mind there is still a minority of users who run Gitea with JS disabled. We don't really support them, but I wouldn't make their life harder knowingly by moving stuff to JS. |
If we want to make their life easier, for example, the |
I suppose custom elements don't work at all with JS disabled and I don't think it's worth the effort trying to render some placeholder for such cases. |
So you see, I do not think " wouldn't make their life harder knowingly by moving stuff to JS." makes sense either. ps: "I suppose custom elements don't work at all" , actually , the text content just works, that's the default content without JS for end users , if you want to support them. |
* upstream/main: Add popup to hashed comments/pull requests/issues in file editing/adding preview tab (go-gitea#24040) Use reactive store to share data between components (go-gitea#23996) [skip ci] Updated translations via Crowdin Fix accidental overwriting of LDAP team memberships (go-gitea#24050) Add cardtype to org/user level project on creation, edit and view (go-gitea#24043) Fix branch protection priority (go-gitea#24045) Update documentation to explain which projects allow Gitea to host static pages (go-gitea#23993) Fix date display bug (go-gitea#24047) Fine tune markdown editor toolbar (go-gitea#24046) Add tooltips for MD editor buttons and add `muted` class for buttons (go-gitea#23896) Prefer native parser for SSH public key parsing (go-gitea#23798)
btn-link
muted
classesmarkdown-toolbar
itself should havedisplay: flex
, but not usegt-df
to overwrite thedisplay: block
.role
attributerole
code is never executed in baseMarkdownButtonElement
github/markdown-toolbar-element#70markdown-toolbar-element
does want to addrole=button
, but there is a bug.markdown-switch-easymde
(before it doesn't have a proper indent)Screenshot: