@conscience-technology/ovenn 0.7.2 → 0.7.3
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.
|
@@ -293,6 +293,25 @@
|
|
|
293
293
|
--button-fg: var(--fg-muted);
|
|
294
294
|
--button-border: var(--border);
|
|
295
295
|
}
|
|
296
|
+
/* Paint the thin outline outside the shared control box. The 1px native border
|
|
297
|
+
stays transparent for layout; padding-box inset -2 hairlines extends the
|
|
298
|
+
visible contour by one hairline without changing heights or icon-only squares. */
|
|
299
|
+
.outline {
|
|
300
|
+
border-color: transparent;
|
|
301
|
+
}
|
|
302
|
+
.outline:not([data-slot="control-group"][data-composition="buttons"] > *)::before {
|
|
303
|
+
content: "";
|
|
304
|
+
position: absolute;
|
|
305
|
+
inset: calc(var(--hairline) * -2);
|
|
306
|
+
box-sizing: border-box;
|
|
307
|
+
border: var(--hairline) solid var(--button-border);
|
|
308
|
+
corner-shape: inherit;
|
|
309
|
+
border-radius: inherit;
|
|
310
|
+
pointer-events: none;
|
|
311
|
+
}
|
|
312
|
+
.outline:not([data-slot="control-group"][data-composition="buttons"] > *):is(:disabled, [aria-disabled="true"]):not([data-loading="true"])::before {
|
|
313
|
+
display: none;
|
|
314
|
+
}
|
|
296
315
|
.outline:hover:not(:disabled):not([aria-disabled="true"]) {
|
|
297
316
|
--button-fg: var(--fg);
|
|
298
317
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
텍스트 액션의 최소 단위. 클릭 시 무언가 **일어나는** 컨트롤: 페이지 이동은 [[components/link]]. size는 [[axes/density]] 축과 연동되고, variant는 semantic 역할(강조 위계)만 담당한다.
|
|
5
5
|
|
|
6
6
|
### Do
|
|
7
|
+
- `outline`의 얇은 경계는 공통 컨트롤 박스 바깥으로 hairline만큼 그려 filled와 시각적 높이를 맞춘다. 모든 size·아이콘 유무에서 layout 높이는 동일하며 화면에서 outline 높이를 따로 늘리지 않는다. 일반 disabled는 채움 상태로 전환해 경계를 숨기고 loading outline은 유지한다.
|
|
7
8
|
- `loading`은 접근 가능한 이름을 유지하고 `aria-busy`를 전달한다. 기본 Spinner는 Motion 축을 따르며 모션 축소에서도 정적인 로딩 표시를 유지한다. `asChild`의 disabled/loading도 클릭·키보드 활성화를 차단하고 탭 순서에서 제외한다.
|
|
8
9
|
- **중요=`primary`, 서브=`outline`**이 기본 쌍이다. 모달 하단, 폼 하단, 페이지 액션 영역 등 "확정 + 취소/이전" 구조의 기본값. `secondary`는 primary tint가 섞인 색조 액션이 필요한 특별 맥락에서만: 중립 서브 액션엔 `outline`이 먼저다.
|
|
9
10
|
- **버튼 사이 gap은 언제나 `space-1`(4px) 고정.** footer action 쌍, 툴바 액션 묶음, 폼 하단 등 어느 자리든 동일. `space-2` 이상 금지: 두 버튼이 하나의 액션 묶음으로 묶여 읽히는 밀도를 유지.
|