-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: 컴포넌트 접근성 검수 (Carousel, BottomSheet) (#984)
* fix: storybook에 globalStyle 적용 * fix: a, button tag에 focus-visible 적용 * style: focus:visible borderRadius 제거 * fix: IOS에서 svg.tsx의 rotation이 제대로 작동하도록 변경 * fix: globalStyle opacity 변경 * feat: Carousel component 접근성 개선과 반응형 대응 및 버그 수정 * fix: BottomSheet 관련 키보드 접근성 고려하여 변경 * style: lint 적용 * fix: focus-visible 속성을 더 다양한 element들에 적용 * fix: Top component tab index 제거 * style: lint 적용 * fix: useParentWidth hook으로 분리 * fix: carousel aria-live 속성 추가 * fix: Carousel 내부 버튼들에 aria 속성 추가 * style: lint 적용 * fix: 필요없는 주석 제거 * fix: focus-visible transition 제거 * chore: lodash 설치
- Loading branch information
Showing
16 changed files
with
373 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 63 additions & 7 deletions
70
client/src/components/Design/components/Carousel/Carousel.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
client/src/components/Design/components/Carousel/CarouselChangeButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** @jsxImportSource @emotion/react */ | ||
import {Direction} from '../Icons/Icon.type'; | ||
import {IconChevron} from '../Icons/Icons/IconChevron'; | ||
|
||
import {changeButtonStyle} from './Carousel.style'; | ||
|
||
interface Props { | ||
direction: Direction; | ||
onClick: () => void; | ||
tabIndex: number; | ||
} | ||
|
||
export const CarouselChangeButton = ({direction, onClick, tabIndex}: Props) => { | ||
return ( | ||
<button | ||
onClick={onClick} | ||
css={changeButtonStyle(direction)} | ||
tabIndex={tabIndex} | ||
aria-label={`${direction === 'left' ? '이전' : '다음'} 이미지`} | ||
> | ||
<IconChevron size={16} direction={direction} /> | ||
</button> | ||
); | ||
}; |
Oops, something went wrong.