fix(sw): add default tooltip for pill tool buttons
- SWToolButton appearance="pill": a non-blank string children is also the native title; an explicit title wins and title="" turns it off; numbers, JSX and arrays are never converted. text / document keep passing only the given title. Accessible name, DOM and classes unchanged - DESIGN_RULES §15: Header UX principles (ellipsis full text, icon-only tool buttons, print class shared by pill, font-dependent widths, scope) - Reference them from DESIGN_RULES §3·§9, COMPONENT_CATALOG §4·§11, AI_USAGE §5.4, SW Header spec §17 and Step Header spec §12
This commit is contained in:
1 parent
e70082550e
commit
22841affaf
6 files changed
+73
-8
No files matched your search
@@ -220,7 +220,7 @@ SW 토큰(`--hm-sw-header-*`, `--hm-sw-property-*`, `--hm-sw-viewer-*`, `--hm-sw
|
||||
- 누르는 순간(`:active`)의 별도 모양은 없습니다. 위 Pressed는 `pressed` Prop 상태입니다.
|
||||
- 색이 고정된 이미지는 기본·Hover 두 장을 줍니다. Hover 그림이 제공되지 않으면 `hoverIcon`을 생략하며(Hover에도 기본 그림 유지), 제공된 그림의 색을 바꿔 Hover 그림을 만들지 않습니다. `currentColor` 한 장으로 상태 색을 따르는 방식은 `SWProcessHeader`의 `tools`에서만 `#B6D0C9` → `#FFC600`이 됩니다. 그 밖의 `pill`에서 시안 색이 인쇄 버튼처럼 `#B6D0C9` → `#FFC600`이면 기본·Hover 두 장 이미지를 씁니다(값은 [DESIGN_RULES.md](./DESIGN_RULES.md) §9·§14).
|
||||
- 위 표와 다른 상태 모양이 시안에 있으면 CSS로 맞추지 않고 지원 범위 밖으로 보고합니다.
|
||||
- 그림은 장식이므로 `<img alt="" />`로 두고 버튼 이름은 `children`으로 줍니다.
|
||||
- 그림은 장식이므로 `<img alt="" />`로 두고 버튼 이름은 `children`(문자열이면 기본 툴팁, DESIGN_RULES §15.2)으로 줍니다.
|
||||
- 상태를 맞추려고 `hm-sw-*` class나 패키지 CSS를 덮지 않습니다.
|
||||
|
||||
### 5.5 창 제어 버튼(창 이동·최소화·최대화·닫기)
|
||||
|
||||
Reference in new issue
Block a user