다크모드 버튼 html 코드 개선 > 그누보드6 이슈

그누보드6 이슈

좋은 댓글과 좋아요는 제작자에게 큰힘이 됩니다.

다크모드 버튼 html 코드 개선 정보

다크모드 버튼 html 코드 개선

본문

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을 사용합니다.
추천
0
  • 복사

댓글 1개

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


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


@dungdang39

90레벨 이상 댓글을 남길 수 있습니다.

© SIRSOFT
현재 페이지 제일 처음으로