테스트 사이트 - 개발 중인 베타 버전입니다

다크모드 버튼 html 코드 개선

· 1년 전 · 278 · 1
https://github.com/gnuboard/g6/blob/78361a6248d0f83115bd9daeaea29a92b2feb84c/templates/taeho/base.html#L290-L294

https://html.spec.whatwg.org/multipage/forms.html#the-label-element

> The label element represents a caption in a user interface.
> label 요소는 사용자 인터페이스에서 캡션을 나타냅니다.

1. `label` > `button` 으로 변경합니다. (`input` 불필요)
2. svg icon 대신 font-awesome을 사용합니다.

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 1개

1년 전
https://github.com/gnuboard/g6/blob/137808ed40a72f9c77208aa784f93989ac5db516/templates/basic/base.html#L292-L295

전체 UI에 대부분(거의 항상) 표시되는 버튼이기 때문에 .toggle-switch 처럼 포괄적인 클래스보다 기능을 정확히 의미하는 아이디를 사용하는 게 좋겠습니다.

@dungdang39

게시글 목록

번호 제목
75
74
71
70
63
61
60
59
47
45
44
43
42
41
40
39
38
37
36
35