Skip to content

CSS: segmented-control.segment ​

.instui-segmented-control — 선택 가능한 세그먼트 컨트롤 레이블과 그 네이티브 라디오 입력.

A -icon-* class may live on the label or its native input; the interaction helper 는 입력 클래스를 레이블로 승격시켜 공유 글리프 페인터가 이를 렌더링할 수 있게 합니다.

접근성 ​

네이티브 라디오를 레이블 안에 두어 체크 상태, 포커스, 비활성화 및 키보드 의미론이 계속 사용 가능하도록 유지하세요.

사용법 ​

css
@import "@pantoken/plugin-custom-components/custom-components.css";

상태 ​

상태설명
:checked—
:disabled—

사용된 토큰 ​

Token타입값
--instui-component-segmented-control-item-border-radius<length>0.75rem
--instui-component-segmented-control-selected-item-background-active-color<color>hsl(from light-dark(#1D354F, #EEF4FD) h s calc(l * 0.85))
--instui-component-segmented-control-selected-item-background-color<color>LightDarklight-dark(#1D354F, #EEF4FD)
--instui-component-segmented-control-selected-item-background-disabled-color<color>LightDarklight-dark(#C7CACD, #4A5B68)
--instui-component-segmented-control-selected-item-background-hover-color<color>hsl(from light-dark(#1D354F, #EEF4FD) h s calc(l + (100 - l) * 0.2))
--instui-component-segmented-control-selected-item-text-color<color>LightDarklight-dark(#ffffff, #1D354F)
--instui-component-segmented-control-selected-item-text-disabled-color<color>LightDarklight-dark(#F2F4F5, #273540)
--instui-component-segmented-control-unselected-item-background-active-color<color>hsl(from light-dark(#44709f33, #86a8d54d) h s calc(l * 0.85))
--instui-component-segmented-control-unselected-item-background-hover-color<color>hsl(from light-dark(#44709f33, #86a8d54d) h s calc(l + (100 - l) * 0.4))
--instui-component-segmented-control-unselected-item-text-color<color>LightDarklight-dark(#1D354F, #ffffff)
--instui-component-segmented-control-unselected-item-text-disabled-color<color>LightDarklight-dark(#9EA6AD, #6A7883)
--instui-focus-outline-colorauto | <color>—
--instui-focus-outline-offset<length>—
--instui-focus-outline-width<line-width>—
--pantoken-segmented-gap<length>0.5rem
--pantoken-segmented-height<length>2.5rem
--pantoken-segmented-padding<length>1rem
--pantoken-segmented-selected-shadow<color>0 2px 4px 2px light-dark(rgba(35,68,101,0.1), rgba(0,0,0,0.15)), 0 1px 2px 0 light-dark(rgba(35,68,101,0.15), rgba(0,0,0,0.3))