@iyulab/modern-app 0.19.4 → 0.19.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.19.5] - 2026-09-15
4
+
5
+ ### Fixed
6
+
7
+ - **`u-page-header`'s back link could still be under 24px tall, depending on the font.** 0.19.4 added
8
+ a fixed 4px of block padding on top of the text line, but with `line-height: normal` the line height
9
+ comes from the font's metrics — 17px with some fonts (a 25px target) and 15px with others (23px,
10
+ still under WCAG 2.2 SC 2.5.8). The padding is now whatever the line box lacks to reach 24px
11
+ (`max(0px, (24px - 1lh) / 2)`), with the same negative margin, so the target is at least 24px tall
12
+ with any font or line height and the header's layout still does not move. The target-size gate now
13
+ also measures the back link with a short line box.
14
+
3
15
  ## [0.19.4] - 2026-09-15
4
16
 
5
17
  ### Fixed
@@ -47,11 +47,14 @@ var t = e`
47
47
  font-weight: var(--u-text-label-weight, 600);
48
48
  color: var(--u-link-txt-color, #1565C0);
49
49
  text-decoration: none;
50
- /* 타깃 크기(WCAG 2.2 SC 2.5.8) — 글자 상자만으로는 높이가 17px 남짓이라 패딩으로 누를 면을 24px 넘게
51
- 키우고, 같은 크기의 음수 여백으로 그 공간을 돌려준다 — 배치는 움직이지 않는다(접미 아이콘과 같은 기법). */
50
+ /* 타깃 크기(WCAG 2.2 SC 2.5.8) — 줄 상자(1lh)에서 모자란 만큼만 패딩으로 채워 누를 면을 24px 로 만들고,
51
+ 같은 크기의 음수 여백으로 그 공간을 돌려준다 — 배치는 움직이지 않는다.
52
+ ⚠고정 패딩(4px)이면 안 된다: line-height: normal 의 높이는 글꼴 메트릭이 정해서 글꼴에 따라 17px(→25)도
53
+ 15px(→23)도 된다. 줄 상자가 이미 24px 이상이면 패딩은 0 이다. */
52
54
  display: inline-block;
53
- padding-block: var(--u-space-2xs, 4px);
54
- margin-block: calc(-1 * var(--u-space-2xs, 4px));
55
+ --_back-pad: max(0px, calc((24px - 1lh) / 2));
56
+ padding-block: var(--_back-pad);
57
+ margin-block: calc(-1 * var(--_back-pad));
55
58
  }
56
59
  .back::before {
57
60
  content: '←';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@iyulab/modern-app",
3
3
  "description": "web-framework by iyulab based on lit-element",
4
- "version": "0.19.4",
4
+ "version": "0.19.5",
5
5
  "keywords": [
6
6
  "iyulab",
7
7
  "web-framework",