Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .jules/palette.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 2025-02-18 - Improve Color Contrast & Micro-interactions
**Learning:** Some elements like `.dikw-grid span` used `--gold` on white backgrounds which resulted in a low contrast ratio (around 2.9:1), violating WCAG AA accessibility standards. Additionally, the lack of hover transitions on buttons and links made interactions feel abrupt.
**Action:** Always verify color contrast ratios against background colors, swapping to higher contrast colors (like `--teal`) where necessary to ensure accessibility. Apply smooth transition timings to opacity, transform, and color properties on interactive elements to provide clear tactile feedback.
20 changes: 15 additions & 5 deletions commit_message.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
๐ŸŽจ Palette: [UX improvement] ์–ธ์–ด ์ „ํ™˜ ๋ฒ„ํŠผ ์ ‘๊ทผ์„ฑ ๋ฐ ํ˜ธ๋ฒ„ ์Šคํƒ€์ผ ๊ฐœ์„ 
๐ŸŽจ Palette: [UX improvement] ์ ‘๊ทผ์„ฑ ๊ฐœ์„  ๋ฐ ๋งˆ์ดํฌ๋กœ ์ธํ„ฐ๋ž™์…˜ ์ถ”๊ฐ€

๐Ÿ’ก What: ์–ธ์–ด ์ „ํ™˜ ๋ฒ„ํŠผ์— `aria-label` ์ถ”๊ฐ€ ๋ฐ ๋ฒ„ํŠผ ์š”์†Œ๋“ค์— `hover` ์‹œ `opacity` ๋ณ€ํ™” ํŠธ๋žœ์ง€์…˜ ์ถ”๊ฐ€
๐ŸŽฏ Why: ์Šคํฌ๋ฆฐ ๋ฆฌ๋” ์‚ฌ์šฉ์ž๊ฐ€ ์ถ•์•ฝ์–ด(KO, EN) ๋Œ€์‹  ๋ช…ํ™•ํ•œ ์–ธ์–ด๋ช…์„ ์ธ์ง€ํ•˜๊ฒŒ ํ•˜๊ณ , ์ผ๋ฐ˜ ์‚ฌ์šฉ์ž๊ฐ€ ์ธํ„ฐ๋ž™ํ‹ฐ๋ธŒ ์š”์†Œ์— ๋Œ€ํ•œ ์‹œ๊ฐ์  ํ”ผ๋“œ๋ฐฑ์„ ๋ฐ›์„ ์ˆ˜ ์žˆ๋„๋ก ๊ฐœ์„ 
๐Ÿ“ธ Before/After: ๋ฒ„ํŠผ ํ˜ธ๋ฒ„ ์‹œ opacity๊ฐ€ 0.8๋กœ ๋ถ€๋“œ๋Ÿฝ๊ฒŒ ๋ณ€๊ฒฝ๋จ
โ™ฟ Accessibility: `aria-label`์„ ํ†ตํ•œ ์Šคํฌ๋ฆฐ ๋ฆฌ๋” ์Œ์„ฑ ํ”ผ๋“œ๋ฐฑ ์ตœ์ ํ™”
๐Ÿ’ก What:
- `.dikw-grid span`์˜ ํ…์ŠคํŠธ ์ƒ‰์ƒ์„ `var(--gold)`์—์„œ `var(--teal)`๋กœ ๋ณ€๊ฒฝํ•˜์—ฌ ์‹œ์ธ์„ฑ์„ ๊ฐœ์„ ํ–ˆ์Šต๋‹ˆ๋‹ค.
- ์ „์—ญ ๋งํฌ(`a`) ๋ฐ ์–ธ์–ด ์ „ํ™˜ ๋ฒ„ํŠผ์— ๋ถ€๋“œ๋Ÿฌ์šด ์ƒํƒœ ์ „ํ™˜ ํšจ๊ณผ(transition)๋ฅผ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.
- ๋ฒ„ํŠผ(`.button`) ํด๋ฆญ ์‹œ ๋ฌผ๋ฆฌ์  ๋ฐ˜์‘๊ฐ์„ ์ฃผ๋Š” ์ถ•์†Œ ํšจ๊ณผ(`transform: scale(0.98)`)์™€ ํŠธ๋žœ์ง€์…˜์„ ์ ์šฉํ–ˆ์Šต๋‹ˆ๋‹ค.

๐ŸŽฏ Why:
- ๊ธฐ์กด ๊ณจ๋“œ ์ƒ‰์ƒ์€ ํฐ์ƒ‰ ๋ฐฐ๊ฒฝ์—์„œ ๋ช…๋„ ๋Œ€๋น„๊ฐ€ 3:1 ์ดํ•˜๋กœ ๋–จ์–ด์ ธ WCAG AA ์ ‘๊ทผ์„ฑ ๊ธฐ์ค€์„ ์ถฉ์กฑํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
- ๋งˆ์šฐ์Šค ์˜ค๋ฒ„ ๋ฐ ํด๋ฆญ ์‹œ ์‹œ๊ฐ์ /๋ฌผ๋ฆฌ์  ํ”ผ๋“œ๋ฐฑ์ด ์—†์–ด ์‚ฌ์šฉ์ž ๊ฒฝํ—˜์ด ๋‹ค์†Œ ๋ฐ‹๋ฐ‹ํ•˜๊ณ  ๋ปฃ๋ปฃํ–ˆ์Šต๋‹ˆ๋‹ค. ๋ช…ํ™•ํ•œ ํ”ผ๋“œ๋ฐฑ์„ ํ†ตํ•ด ์ƒํ˜ธ์ž‘์šฉ์˜ ๋งŒ์กฑ๋„๋ฅผ ๋†’์˜€์Šต๋‹ˆ๋‹ค.

๐Ÿ“ธ Before/After:
(์ฒจ๋ถ€๋œ ์Šคํฌ๋ฆฐ์ƒท ์ฐธ๊ณ  - ๋Œ€๋น„๊ฐ€ ๊ฐœ์„ ๋œ DIKW ์„น์…˜ ๋ฐ ํ…์ŠคํŠธ ๋ณ€๊ฒฝ ํ™•์ธ ๊ฐ€๋Šฅ)

โ™ฟ Accessibility:
- ํ…์ŠคํŠธ ์ƒ‰์ƒ ๋Œ€๋น„ ๊ฐœ์„ ์„ ํ†ตํ•ด ์‹œ๋ ฅ ๋ณด์™„์ด ํ•„์š”ํ•œ ์‚ฌ์šฉ์ž๊ฐ€ ํ…์ŠคํŠธ๋ฅผ ๋” ๋ช…ํ™•ํ•˜๊ฒŒ ์ฝ์„ ์ˆ˜ ์žˆ๋„๋ก ์ ‘๊ทผ์„ฑ์„ ๊ฐ•ํ™”ํ–ˆ์Šต๋‹ˆ๋‹ค.
11 changes: 8 additions & 3 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ body {

a {
color: inherit;
transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}
Comment on lines 42 to 45

.site-header {
Expand Down Expand Up @@ -107,7 +108,7 @@ a {
font-size: 13px;
font-weight: 850;
cursor: pointer;
transition: opacity 0.2s;
transition: opacity 0.2s, background-color 0.2s, color 0.2s;
}

.language-switch button:not([aria-pressed="true"]):hover {
Expand Down Expand Up @@ -217,13 +218,17 @@ h1 {
text-decoration: none;
font-size: 15px;
font-weight: 800;
transition: opacity 0.2s;
transition: opacity 0.2s, transform 0.1s;
}

.button:hover {
opacity: 0.8;
}

.button:active {
transform: scale(0.98);
}

.button.primary {
background: var(--ink);
color: var(--white);
Expand Down Expand Up @@ -442,7 +447,7 @@ h1 {
.dikw-grid span {
display: block;
margin-bottom: 38px;
color: var(--gold);
color: var(--teal);
font-size: 14px;
font-weight: 900;
}
Expand Down