From 033da75ac3374333c933291fa292e298f6e67f52 Mon Sep 17 00:00:00 2001 From: seonghobae <8172694+seonghobae@users.noreply.github.com> Date: Wed, 1 Jul 2026 14:27:23 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20[UX=20improvement]=20?= =?UTF-8?q?=EC=A0=91=EA=B7=BC=EC=84=B1=20=EA=B0=9C=EC=84=A0=20=EB=B0=8F=20?= =?UTF-8?q?=EB=A7=88=EC=9D=B4=ED=81=AC=EB=A1=9C=20=EC=9D=B8=ED=84=B0?= =?UTF-8?q?=EB=9E=99=EC=85=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .jules/palette.md | 3 +++ commit_message.txt | 20 +++++++++++++++----- styles.css | 11 ++++++++--- 3 files changed, 26 insertions(+), 8 deletions(-) create mode 100644 .jules/palette.md diff --git a/.jules/palette.md b/.jules/palette.md new file mode 100644 index 0000000..4b6359d --- /dev/null +++ b/.jules/palette.md @@ -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. diff --git a/commit_message.txt b/commit_message.txt index 3f220da..2413bfa 100644 --- a/commit_message.txt +++ b/commit_message.txt @@ -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: +- ν…μŠ€νŠΈ 색상 λŒ€λΉ„ κ°œμ„ μ„ 톡해 μ‹œλ ₯ 보완이 ν•„μš”ν•œ μ‚¬μš©μžκ°€ ν…μŠ€νŠΈλ₯Ό 더 λͺ…ν™•ν•˜κ²Œ 읽을 수 μžˆλ„λ‘ 접근성을 κ°•ν™”ν–ˆμŠ΅λ‹ˆλ‹€. diff --git a/styles.css b/styles.css index 3cca9f9..99c4e30 100644 --- a/styles.css +++ b/styles.css @@ -41,6 +41,7 @@ body { a { color: inherit; + transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease; } .site-header { @@ -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 { @@ -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); @@ -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; }