TIL@220506

지원·2022년 5월 5일
0

Static HTML elements with event handlers require a role

  • <div>, <span> 혹은 <a>, <big>, <blockquote>, <footer>, <picture>, <strike>, <time> 등 semantic mapping이 없는 static tag에 event handler가 붙는 경우 role attribute를 명시해 줄 것
  • 예) button, link, checkbox, menuitem, menuitemcheckbox, menuitemradio, option, radio, searchbox, switch, textbox
  • 참고자료

ARIA(Accessible Rich Internet Applications)

interactive-supports-focus

Value must be omitted for boolean attributes

  • JSX에서 boolean attribute의 값이 true인 경우, 이를 생략하는 것을 강제한 경우 ("react/jsx-boolean-value": "never")
  • default: "never"
  • command line에 --fix flag를 명시한 경우 fixable
  • Github - jsx-eslint

Elements with the ARIA role "slider" must have the following attributes defined: aria-valuenow

Button needs explicit type attribute.

Prevent usage of Array index in keys

CSS

  • button type 속성: button|submit|reset

  • animation

    • animation-fill-mode
    • animation 이후에 transform 적용
  • transition-delay

  • input -> caret-color : text 현재 위치 색 지정

Animation on React

Misc

  • 특정 브랜치 클론하기: git clone -b branchname url
profile
섬마을 초보 개발자

0개의 댓글