s

다크모드 버튼 html 코드 개선

· 2024-01-22 (월) 16:35:11 · 635 · 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
댓글을 작성하시려면 로그인이 필요합니다.

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

+
제목 글쓴이 날짜 조회
24-01-25 조회 551
24-01-25 조회 587
24-01-24 조회 481
24-01-24 조회 905
24-01-24 조회 674
24-01-23 조회 564
24-01-23 조회 633
24-01-23 조회 524
24-01-23 조회 535
24-01-22 조회 589
24-01-22 조회 636
24-01-22 조회 563
24-01-22 조회 596
24-01-22 조회 497
24-01-21 조회 537
24-01-19 조회 604
24-01-18 조회 763
24-01-18 조회 763
sseiblog-nand...
24-01-17 조회 477
sseiblog-nand...
24-01-16 조회 457