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
4 changes: 4 additions & 0 deletions .Jules/palette.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@
## 2024-07-15 - Expand clickable area of project cards
**Learning:** Using an anchor tag to wrap an entire card (block-level element) can result in verbose and confusing screen reader output. However, restricting the clickable area to just the title makes the UI harder to interact with (violating Fitts's Law).
**Action:** Apply `position: relative` to the card container and use a `::after` pseudo-element with `position: absolute; inset: 0;` on the title's anchor tag. This expands the clickable area to the whole card while keeping semantic and accessible HTML structure.

## 2026-08-05 - Add :active state for tactile feedback
**Learning:** Found that buttons only have `:hover` states but no `:active` states. Without an `:active` state, users don't get immediate tactile visual feedback when they click, making the UI feel less responsive and slightly disconnected.
**Action:** Always add an `:active` state (e.g., using `transform: scale(0.98)`) to interactive button elements so users receive immediate, clear feedback upon interaction.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# CHANGELOG

## [Unreleased]
- **UX κ°œμ„ **: λ²„νŠΌ(`.button`, `.language-switch button`) 클릭 μ‹œ μŠ€μΌ€μΌμ΄ μ€„μ–΄λ“œλŠ” `:active` μƒνƒœλ₯Ό μΆ”κ°€ν•˜μ—¬ 즉각적인 μ‹œκ°μ  촉각 ν”Όλ“œλ°±μ„ μ œκ³΅ν•˜λ„λ‘ κ°œμ„ ν–ˆμŠ΅λ‹ˆλ‹€.
- **UX/μ ‘κ·Όμ„± κ°œμ„ **: ν”„λ‘œμ νŠΈ μΉ΄λ“œμ˜ 클릭 μ˜μ—­μ„ μΉ΄λ“œ μ „μ²΄λ‘œ ν™•μž₯ν•˜μ—¬ μ‚¬μš©μž νŽΈμ˜μ„±μ„ λ†’μ˜€μŠ΅λ‹ˆλ‹€. <a> νƒœκ·Έλ₯Ό ν™•μž₯ν•˜λŠ” λŒ€μ‹  가상 μš”μ†Œ(pseudo-element) κ²ΉμΉ¨ 방식을 μ‚¬μš©ν•˜μ—¬ 슀크린 리더 접근성을 μœ μ§€ν–ˆμŠ΅λ‹ˆλ‹€.
- **λ³΄μ•ˆ κ°œμ„ **: μ»΄ν¬λ„ŒνŠΈ 가러리의 인라인 μŠ€ν¬λ¦½νŠΈμ™€ μŠ€νƒ€μΌμ„ μ™ΈλΆ€ 파일둜 λΆ„λ¦¬ν•˜κ³ , μ—„κ²©ν•œ Content-Security-Policyλ₯Ό μ μš©ν•΄ XSS λ°©μ–΄λ₯Ό κ°•ν™”ν–ˆμŠ΅λ‹ˆλ‹€.
- **μ„±λŠ₯ νšŒκ·€ 볡원**: μ˜€ν”„μŠ€ν¬λ¦° `.section` λ Œλ”λ§μ„ `content-visibility: auto`둜 μ§€μ—°ν•˜κ³ , 일반 μ„Ήμ…˜μ€ 600pxΒ·μ½˜ν…μΈ κ°€ 큰 DIKW/projects μ„Ήμ…˜μ€ 1000px의 `contain-intrinsic-size` placeholderλ₯Ό μœ μ§€ν•΄ 초기 λ Œλ”λ§ λΉ„μš©κ³Ό μŠ€ν¬λ‘€λ°” 이동을 ν•¨κ»˜ μ€„μ˜€μŠ΅λ‹ˆλ‹€.
Expand Down
12 changes: 10 additions & 2 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,17 @@ a {
font-size: 13px;
font-weight: 850;
cursor: pointer;
transition: opacity 0.2s;
transition: opacity 0.2s, transform 0.1s;
}

.language-switch button:not([aria-pressed="true"]):hover {
opacity: 0.8;
}

.language-switch button:active {
transform: scale(0.92);
}

.language-switch button[aria-pressed="true"] {
background: var(--ink);
color: var(--white);
Expand Down Expand Up @@ -218,13 +222,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
16 changes: 16 additions & 0 deletions tests/test_styles.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,19 @@ def test_project_cards_are_fully_clickable_via_pseudo_element():
after_rule = _rule(".project-grid h3 a::after")
assert "position: absolute;" in after_rule
assert "inset: 0;" in after_rule

def test_buttons_have_active_transform_feedback():
"""Buttons should have an :active state with transform scaling for tactile feedback."""
button_rule = _rule(".button")
assert "transition:" in button_rule
assert "transform" in button_rule

active_rule = _rule(".button:active")
assert "transform: scale(" in active_rule

lang_button_rule = _rule(".language-switch button")
assert "transition:" in lang_button_rule
assert "transform" in lang_button_rule

lang_active_rule = _rule(".language-switch button:active")
assert "transform: scale(" in lang_active_rule
Loading