s

다크모드 버튼 html 코드 개선

· 2024-01-22 (월) 16:35:11 · 603 · 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개

2024-01-25 (목) 17:21:37
https://github.com/gnuboard/g6/blob/137808ed40a72f9c77208aa784f93989ac5db516/templates/basic/base.html#L292-L295

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

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

그누보드6 이슈

174건

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

+
제목 글쓴이 날짜 조회
24-01-25 조회 517
24-01-25 조회 553
24-01-24 조회 433
24-01-24 조회 864
24-01-24 조회 631
24-01-23 조회 530
24-01-23 조회 602
24-01-23 조회 486
24-01-23 조회 497
24-01-22 조회 546
24-01-22 조회 604
24-01-22 조회 531
24-01-22 조회 555
24-01-22 조회 468
24-01-21 조회 493
24-01-19 조회 570
24-01-18 조회 713
24-01-18 조회 704
sseiblog-nand...
24-01-17 조회 440
sseiblog-nand...
24-01-16 조회 428