Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessibility test/#136 #157

Merged
merged 28 commits into from
Nov 30, 2024
Merged

Accessibility test/#136 #157

merged 28 commits into from
Nov 30, 2024

Conversation

seonghunYang
Copy link
Collaborator

@seonghunYang seonghunYang commented Nov 27, 2024

๐Ÿ“Œ ์ž‘์—… ๋‚ด์šฉ

๊ตฌํ˜„ ๋‚ด์šฉ ๋ฐ ์ž‘์—… ํ–ˆ๋˜ ๋‚ด์—ญ

  1. ์ปดํฌ๋„ŒํŠธ ์ ‘๊ทผ์„ฑ ๊ฐœ์„  - ์ ‘๊ทผ์„ฑ ํ…Œ์ŠคํŠธ ๊ฒฐ๊ณผ 47๊ฐœ ์‹คํŒจ์—์„œ ์ „์ฒด ํ†ต๊ณผ๋กœ ๊ฐœ์„ 

    ๊ฐœ์„  ์ „:
    image

    ๊ฐœ์„  ํ›„:
    image

  2. ์Šคํ† ๋ฆฌ๋ถ์— ์ ‘๊ทผ์„ฑ(a11y) ์• ๋“œ์˜จ ์„ค์ •

  3. WCAG ํ‘œ์ค€ AA ๊ธฐ์ค€์— ๋”ฐ๋ฅธ ์ƒ‰์ƒ ๋ช…์•”๋น„ ๊ฐœ์„ 

  4. ๋ฒ„ํŠผ ์ปดํฌ๋„ŒํŠธ๋ฅผ ๋‹คํ˜•์„ฑ(Polymorphic) ์ปดํฌ๋„ŒํŠธ๋กœ ๋ณ€๊ฒฝํ•˜์—ฌ ์Šคํƒ€์ผ์„ ์žฌ์‚ฌ์šฉ

  5. ์Šคํฌ๋กค ๊ฐ€๋Šฅํ•œ ์ปดํฌ๋„ŒํŠธ์— ํ‚ค๋ณด๋“œ ์ ‘๊ทผ์„ฑ ์ถ”๊ฐ€

  6. ARIA hidden ์š”์†Œ์˜ ์ž์‹ ์š”์†Œ๊ฐ€ ํฌ์ปค์Šค๋˜์ง€ ์•Š๋„๋ก ์ˆ˜์ •

๐Ÿค” ๊ณ ๋ฏผ ํ–ˆ๋˜ ๋ถ€๋ถ„

  • ํ•™์šฐ๋“ค์„ ๋Œ€์ƒ์œผ๋กœ ํ•˜๋Š” ์„œ๋น„์Šค์ธ ๋งŒํผ, ๋‹ค์–‘ํ•œ ํ•™์ƒ๋“ค์˜ ์ ‘๊ทผ์„ฑ์„ ๊ณ ๋ คํ•ด์•ผ ํ•œ๋‹ค๊ณ  ํŒ๋‹จํ•˜์—ฌ ์ปดํฌ๋„ŒํŠธ ์ ‘๊ทผ์„ฑ ๊ฐœ์„  ์ž‘์—…์„ ์ง„ํ–‰ํ•˜์˜€์Šต๋‹ˆ๋‹ค.
  • a11y ์ ‘๊ทผ์„ฑ ํ…Œ์ŠคํŠธ ๊ฒฐ๊ณผ, ๋Œ€๋ถ€๋ถ„์˜ ๋ฌธ์ œ๋Š” 'Elements must meet minimum color contrast ratio thresholds'๋กœ, ๋ช…์•”๋น„๊ฐ€ ๊ธฐ์ค€์น˜๋ณด๋‹ค ๋‚ฎ์•˜์Šต๋‹ˆ๋‹ค. ์ด์— ๊ธฐ์กด ์ƒ‰์ƒ ํ†ค์„ ์œ ์ง€ํ•˜๋ฉด์„œ ๋ช…์•”๋น„๋ฅผ AA ๊ธฐ์ค€์— ๋งž๊ฒŒ ์ˆ˜์ •ํ•˜์˜€์Šต๋‹ˆ๋‹ค.
  • result-card์—์„œ button์˜ outline ์Šคํƒ€์ผ์„ ์žฌ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด button ์ปดํฌ๋„ŒํŠธ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ 'ARIA role should be appropriate for the element' ์ ‘๊ทผ์„ฑ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค. ์ด ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•ด ๋ฒ„ํŠผ ์ปดํฌ๋„ŒํŠธ๋ฅผ ๋‹คํ˜•์„ฑ(Polymorphic) ์ปดํฌ๋„ŒํŠธ๋กœ ๊ฐœ์„ ํ•˜์—ฌ ์Šคํƒ€์ผ๋งŒ ์žฌ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•˜์˜€์Šต๋‹ˆ๋‹ค.

๐Ÿ”Š ๋„์›€์ด ํ•„์š”ํ•œ ๋ถ€๋ถ„

  • ๊ฐ์ž ๋‹ด๋‹นํ•˜๊ณ  ์žˆ๋Š” ๋„๋ฉ”์ธ์—์„œ ๋ณ€๊ฒฝ์œผ๋กœ ์ธํ•œ ๋ฌธ์ œ๊ฐ€ ์—†๋Š”์ง€ ๊ฒ€ํ† ํ•ด์ฃผ์‹œ๋ฉด ๊ฐ์‚ฌํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

ํ…์ŠคํŠธ ์ƒ‰๊ณผ ๋ฐฐ๊ฒฝ์ƒ‰์˜ ๋Œ€๋น„๋ฅผ ๊ฐ•์กฐํ•˜๊ธฐ ์œ„ํ•ด ์ปฌ๋Ÿฌ ์ˆ˜์ •
ํ…์ŠคํŠธ ์ƒ‰๊ณผ ๋ฐฐ๊ฒฝ์ƒ‰์˜ ์ƒ‰์ƒ ๋Œ€๋น„์œจ์„ ๋†’์ด๊ธฐ ์œ„ํ•ด ์ˆ˜์ •
button ์Šคํƒ€์ผ์„ ์žฌ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด ์ˆ˜์ •
Copy link

Copy link
Member

@yougyung yougyung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ˆ˜๊ณ  ๋งŽ์œผ์…จ์–ด์š” ๐Ÿ‘

@@ -35,10 +35,10 @@ const displaySeveralMajor = (category: ResultCategoryKey) => {
return (
<>
<Responsive maxWidth={767}>
<Button label={majorType} variant="outlined" size="xs" role="none presentation" className="p-1 text-[10px]" />
<Button label={majorType} variant="outlined" size="xs" as="div" className="p-1 text-[10px]" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as keyword๋ฅผ ํ†ตํ•ด renderingํ•  tag๋ฅผ ๋ณ€๊ฒฝ์‹œํ‚ฌ ์ˆ˜ ์žˆ๊ตฐ์š”! ์ƒˆ๋กญ๊ฒŒ ์•Œ์•˜์–ด์š” ๐Ÿ‘

size="default"
data-cy={`taken-lecture-delete-model-trigger-${item.id}`}
data-testid="taken-lecture-delete-button"
className="opacity-0 hover:opacity-100"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
className="opacity-0 hover:opacity-100"
className="opacity-0 group-hover:opacity-100"

๋ณ€๊ฒฝ ๊ณผ์ •์—์„œ ๋ˆ„๋ฝ๋œ ๊ฒƒ ์ผ๊นŒ์š”?!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ๊ธฐ์กด์—๋Š” button hover ์‹œ div ํƒœ๊ทธ์˜ ํˆฌ๋ช…๋„๋ฅผ ์กฐ์ ˆํ•˜๊ธฐ ์œ„ํ•ด group ์ ‘๋‘์‚ฌ๊ฐ€ ํ•„์š”ํ–ˆ์œผ๋‚˜, ์ ‘๊ทผ์„ฑ ๋ฌธ์ œ๋กœ div๊ฐ€ ์ œ๊ฑฐ๋˜๋ฉด์„œ group ์ ‘๋‘์‚ฌ๋„ ํ•จ๊ป˜ ์ œ๊ฑฐํ•˜์˜€์Šต๋‹ˆ๋‹ค.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์˜๋„๋œ ๋ถ€๋ถ„์ด์—ˆ๊ตฐ์š”! group ์ ‘๋‘์‚ฌ๊ฐ€ ์ œ๊ฑฐ๋˜๋ฉด์„œ ์•„๋ž˜ ๋™์˜์ƒ๊ณผ ๊ฐ™์ด ์‚ญ์ œ ๋ฒ„ํŠผ์˜ ๋…ธ์ถœ ๋ฐฉ์‹์ด ๋ณ€๊ฒฝ๋˜์—ˆ๋Š”๋ฐ, ์‚ฌ์šฉ์ž๊ฐ€ ์˜ˆ์ƒํ•˜๊ธฐ ์–ด๋ ค์šธ ์ˆ˜ ์žˆ๋‹ค๋Š” ์šฐ๋ ค๊ฐ€ ๋“œ๋„ค์š”.

2024-11-29.11.31.06.mov

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ์•„, ์ œ๊ฐ€ ๋™์ž‘๋ฐฉ์‹์„ ์˜คํ•ดํ–ˆ๋„ค์š”. ์›๋ž˜ ์œ„ ์˜์ƒ๋Œ€๋กœ ๋™์ž‘ํ•˜๋Š” ์ค„ ์•Œ๊ณ  ์ˆ˜์ •ํ–ˆ๋˜ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. ๋‹ค์‹œ ์ˆ˜์ •ํ•˜์—ฌ ๋ฐ˜์˜ํ–ˆ์Šต๋‹ˆ๋‹ค. ๋†“์นœ ๋ถ€๋ถ„์„ ์งš์–ด์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค!

c404cd5

@@ -21,6 +21,7 @@ export function ListRoot<T extends ListRow>({ data, render, isScrollList = false
isScrollList && 'h-72 overflow-auto',
hasNotData && 'flex justify-center items-center',
)}
tabIndex={0}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ด ๊ฒฝ์šฐ ๊ฐ row๊ฐ€ ์•„๋‹Œ, list์ž์ฒด์— focus๊ฐ€ ์žกํž ๊ฒƒ ๊ฐ™์€๋ฐ, ์˜๋„ํ•˜์‹  ๋ถ€๋ถ„์ธ๊ฐ€์š”?!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ๋„ค, 'Scrollable region must have keyboard access' ๊ทœ์น™์„ ์ค€์ˆ˜ํ•˜๊ธฐ ์œ„ํ•ด ๋ชฉ๋ก ์ž์ฒด์— ํฌ์ปค์Šค๋ฅผ ์ฃผ๊ณ ์ž ํ–ˆ์Šต๋‹ˆ๋‹ค!

Copy link

yougyung
yougyung previously approved these changes Nov 29, 2024
Copy link

Copy link
Member

@gahyuun gahyuun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๊ณ ์ƒํ•˜์…จ์Šต๋‹ˆ๋‹ค~!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

์ ‘๊ทผ์„ฑ ํ…Œ์ŠคํŠธ ์ง„ํ–‰ํ•˜๋ฉด์„œ ๋ฐœ์ƒํ•œ ๋ฌธ์ œ๋Š” ์•„๋‹Œ ๊ฒƒ ๊ฐ™์ง€๋งŒ,, ์ •๋ ฌ์ด ๋งž์ถฐ์ง€๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์•„์š”!
๊ทผ๋ฐ ์ด ๋ถ€๋ถ„์€ ์ œ๊ฐ€ ๋‚˜์ค‘์— ์Šคํƒ€์ผ ์ˆ˜์ • ์ž‘์—…ํ•˜๋ คํ–ˆ๋Š”๋ฐ ๊ทธ๋•Œ ๊ฐ™์ด ํ•ด๋„ ๋  ๊ฒƒ ๊ฐ™์•„์š”~

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ์ด๊ฑฐ ์ œ๊ฐ€ ์ˆ˜์ •ํ•ด์„œ ์˜ฌ๋ฆด๊ฒŒ์š”!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹ค!
1b2fbc4

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๋ฒ„ํŠผ ์ปดํฌ๋„ŒํŠธ๋ฅผ as ์†์„ฑ์„ ํ†ตํ•ด ์Šคํƒ€์ผ์„ ์žฌ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š”๊ฒŒ ์ธ์ƒ ๊นŠ์—ˆ์–ด์š”! ๋‹คํ˜•์„ฑ ์ปดํฌ๋„ŒํŠธ๋ฅผ ๋งŒ๋“œ๋Š”๊ฒŒ ๊ธฐ๋Šฅ ํ™•์žฅ์ด ๋˜์—ˆ์„ ๋•Œ๋„ ์ข‹์„ ๊ฒƒ ๊ฐ™์•„์š” ๋งŽ์ด ๋ฐฐ์šธ ์ˆ˜ ์žˆ์—ˆ์Šต๋‹ˆ๋‹ค ๐Ÿ‘๐Ÿป
๋‹ค๋งŒ ์ œ๊ฐ€ ํ™•์ธํ•ด๋ณด์•˜์„ ๋•Œ variant="outlined" ์†์„ฑ์„ ์‚ฌ์šฉํ•˜๋Š” ๊ณณ์ด result-card ์ปดํฌ๋„ŒํŠธ๋ฟ์ด๋”๋ผ๊ตฌ์š”
๊ทธ๋ ‡๋‹ค๋ฉด result-card๊ฐ€ Button ์ปดํฌ๋„ŒํŠธ๋ฅผ ๊ตณ์ด ์‚ฌ์šฉํ•˜์ง€ ์•Š๊ณ  outlined ์Šคํƒ€์ผ์„ ๊ฐ€์ง„ ์š”์†Œ๋ฅผ ๋งŒ๋“ค์–ด๋„ ๋˜์ง€ ์•Š์•˜์„๊นŒ? Button์˜ ์Šคํƒ€์ผ์„ ์žฌ์‚ฌ์šฉํ•œ๋‹ค๊ณ  ๋ณผ ์ˆ˜ ์žˆ์„๊นŒ? ๋ผ๊ณ  ์ƒ๊ฐํ–ˆ์–ด์š”..!
ํ˜น์‹œ ์ด ๋ถ€๋ถ„์— ๋Œ€ํ•ด์„œ๋Š” ์–ด๋–ป๊ฒŒ ์ƒ๊ฐํ•˜์‹œ๋‚˜์š”?

Copy link
Collaborator Author

@seonghunYang seonghunYang Nov 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ์šฐ์„  ์ ‘๊ทผ์„ฑ ๊ฐœ์„  ์ž‘์—…์„ ์ง„ํ–‰ํ•˜๋ฉด์„œ, ์ œ๊ฐ€ ์ž‘์—…ํ•˜์ง€ ์•Š์€ ๋ถ€๋ถ„์ด๋‹ค ๋ณด๋‹ˆ ๋ฏธ์ฒ˜ ํŒŒ์•…ํ•˜์ง€ ๋ชปํ•œ ์˜๋„๊ฐ€ ์žˆ์„ ์ˆ˜ ์žˆ์–ด์„œ, ๊ธฐ์กด ๊ธฐ๋Šฅ์„ ์ตœ๋Œ€ํ•œ ์œ ์ง€ํ•˜๋ฉด์„œ ์ˆ˜์ •ํ•˜๋ ค ํ–ˆ์Šต๋‹ˆ๋‹ค.
  • ์ €๋„ ๋™์ผํ•œ ๊ณ ๋ฏผ์„ ํ–ˆ๋Š”๋ฐ, ํ•ด๋‹น ๋””์ž์ธ์ด ์ €ํฌ outlined button๊ณผ ์™„์ „ํžˆ ์ผ์น˜ํ•˜๊ณ  ์ด๊ฒŒ ์˜๋„๋œ ๊ฑฐ๋ผ๋ฉด ์ƒˆ๋กœ์šด ์ปดํฌ๋„ŒํŠธ๋ฅผ ๋งŒ๋“ค๊ธฐ๋ณด๋‹ค๋Š” ๊ธฐ์กด button ์ปดํฌ๋„ŒํŠธ์˜ ์Šคํƒ€์ผ์„ ์žฌ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ๋„ ํšจ์œจ์ ์ด๋ผ๊ณ  ํŒ๋‹จํ•˜์—ฌ ์ด๋ ‡๊ฒŒ ์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹ค.
  • outline label์„ ๋งŒ๋“ค์–ด button ์ปดํฌ๋„ŒํŠธ๋ฅผ ์ด ์ปดํฌ๋„ŒํŠธ๋กœ layerํ•˜๋Š” ๋ฐฉ์‹๋„ ๊ณ ๋ คํ–ˆ์ง€๋งŒ, ์ด๋Š” button ์ปดํฌ๋„ŒํŠธ์˜ cva ์Šคํƒ€์ผ ๊ทœ์ • ๋ฐฉ์‹๊ณผ ํ†ต์ผ์„ฑ์ด ๊นจ์งˆ ์ˆ˜ ์žˆ์–ด์„œ ๊ธฐ์กด button ์ปดํฌ๋„ŒํŠธ๋ฅผ ํ™œ์šฉํ•˜๋Š” ๋ฐฉ์‹์„ ์„ ํƒํ–ˆ์Šต๋‹ˆ๋‹ค.
  • ์ด ๋ถ€๋ถ„ ์ž‘์—…์„ ์ง„ํ–‰ํ•œ ์œ ๊ฒฝ ๋‹˜ ์ƒ๊ฐ์ด ๊ถ๊ธˆํ•˜๋„ค์š”!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๋จผ์ €, ํ•ด๋‹น ๋””์ž์ธ์„ ๊ณ„ํšํ•  ๋‹น์‹œ์—๋Š” ๋””์ž์ธ ์‹œ์Šคํ…œ์„ ์ตœ๋Œ€ํ•œ ์ด์šฉํ•ด ํ†ต์ผ๋œ ์ด๋ฏธ์ง€๋ฅผ ์ „๋‹ฌํ•˜๊ณ ์ž ๋ฒ„ํŠผ์˜ outliened์„ ์˜๋„์ ์œผ๋กœ ๊ฐ€์ ธ์™”์–ด์š”. ๊ฐœ๋ฐœ ์˜๋„๊ฐ€ button์˜ ui๋ฅผ ์žฌ์‚ฌ์šฉํ–ˆ๋˜ ๋ชฉ์ ์ด๋ผ ๋‹คํ˜•์„ฑ ์ปดํฌ๋„ŒํŠธ๋กœ ์ „ํ™˜ํ•˜๋Š” ๋ฐฉ์‹์ด ์ข‹์€ ์ ‘๊ทผ์ด๋ผ๊ณ  ๋Š๊ผˆ์Šต๋‹ˆ๋‹ค.

outlined ์Šคํƒ€์ผ์ด ์ €ํฌ ๋””์ž์ธ ์‹œ์Šคํ…œ์— ์—†์—ˆ๋”๋ผ๋ฉด ํ•ด๋‹น ์š”์†Œ๋ฅผ ์ƒ์„ฑํ•˜๋Š” ๊ฒƒ๋„ ์ข‹์•„๋ณด์ด์ง€๋งŒ, ๋””์ž์ธ ์‹œ์Šคํ…œ์— ๋ฒ„ํŠผ์˜ ์ข…๋ฅ˜๋กœ์„œ ์กด์žฌํ•˜๊ธฐ๋•Œ๋ฌธ์— button์˜ ์Šคํƒ€์ผ์„ ์žฌ์‚ฌ์šฉํ•œ๋‹ค๊ณ  ๋ณผ ์ˆ˜ ์žˆ๋‹ค๊ณ  ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค !

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์•„ํ•˜ ๊ฐœ๋ฐœ ์˜๋„๊ฐ€ button ui ์žฌ์‚ฌ์šฉ์ด์—ˆ๋‹ค๋ฉด ๋‹คํ˜•์„ฑ ์ปดํฌ๋„ŒํŠธ๊ฐ€ ๋” ์ ํ•ฉํ•  ๊ฒƒ ๊ฐ™๋„ค์š”~! ํ™•์ธํ–ˆ์Šต๋‹ˆ๋‹ค:)

Copy link

Copy link

@seonghunYang seonghunYang merged commit 0d855d0 into main Nov 30, 2024
2 of 3 checks passed
@seonghunYang seonghunYang deleted the Accessibility-test/#136 branch November 30, 2024 12:39
@seonghunYang seonghunYang self-assigned this Dec 1, 2024
@Myongji-Graduate Myongji-Graduate deleted a comment from gahyuun Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants