어디 선가 발생한 css 오류 덮어씌우기
2023. 6. 2. 17:08ㆍ개발/html,css,tailwind
반응형
난 준적이 없는 배경색이 들어가 있어서
style={isFunction(onRowClick) ? { cursor: 'pointer' } : { cursor: 'auto' }}
className={index === selectedIndex ? 'table_tr_selected' : '' }
>>>>>>
style={
isFunction(onRowClick) ? { cursor: 'pointer', ...(index === selectedIndex ? { backgroundColor: '#3c8dbc', color: 'white' } : {}) }
: { cursor: 'auto', ...(index === selectedIndex ? { backgroundColor: '#3c8dbc', color: 'white' } : {}) }
}
이렇게 어거지로 바꾼 ㅜㅜ 일단 이렇게 하고 넘어갑니다. 나중에 고치러 다시오겠습니다.
반응형
'개발 > html,css,tailwind' 카테고리의 다른 글
State of HTML 2023 (0) | 2024.05.16 |
---|---|
css 공부 게임 (0) | 2023.10.31 |
부트스트랩 .pull-right 미작동 (0) | 2023.05.18 |
button 에 관한 고찰 (0) | 2023.04.27 |
html 구성요소 (0) | 2023.03.24 |