mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-09 10:13:53 +09:00
Fix some UI bugs and clean up unused tests (#34088)
1. Make the material icon falls back to basic theme correctly 2. Remove `TestAttributeReader`, the problem has been resolved. 3. Fix `toggleElem` bug and add tests
This commit is contained in:
@ -44,7 +44,7 @@ export function toggleClass(el: ElementArg, className: string, force?: boolean)
|
||||
* @param force force=true to show or force=false to hide, undefined to toggle
|
||||
*/
|
||||
export function toggleElem(el: ElementArg, force?: boolean) {
|
||||
toggleClass(el, 'tw-hidden', !force);
|
||||
toggleClass(el, 'tw-hidden', force === undefined ? force : !force);
|
||||
}
|
||||
|
||||
export function showElem(el: ElementArg) {
|
||||
|
Reference in New Issue
Block a user