Skip to content

CSS: tabs.tab

.tab — 單一分頁按鈕(InstUI Tabs.Tab,由父層 Tabs 的分頁列表配置);-selected 標示為當前活動的。

父層 tabs-variant-secondary 修飾器會將此成員重新樣式化為圓角的 "folder" 分頁 — 請參見 tabs 的文件以了解該修飾器。

使用方法

css
@import "@pantoken/components/components.css";
@import "@pantoken/components/tabs.tab.css";

修飾器

修飾器說明
.-disabled非互動;樣式與 [aria-disabled="true"]/:disabled 相同。
.-selected目前活動的分頁;樣式與 [aria-selected="true"] 相同。

狀態

狀態說明
[aria-disabled="true"]
[aria-selected="true"]
:disabled
:state(selected)

已使用的代幣

Token型別
--instui-component-tabs-panel-border-width<length>0.0625rem
--instui-component-tabs-tab-default-hover-border-color<color>LightDarklight-dark(#8D959F, #6A7883)
--instui-component-tabs-tab-default-selected-border-color<color>LightDarklight-dark(#1D354F, #EEF4FD)
--instui-component-tabs-tab-default-text-color<color>LightDarklight-dark(#273540, #ffffff)
--instui-component-tabs-tab-font-family[ <font-family-name> | <generic-font-family> ]#Atkinson Hyperlegible Next, "Helvetica Neue", Helvetica, Arial, sans-serif
--instui-component-tabs-tab-font-size<length>1rem
--instui-component-tabs-tab-font-weight<integer>400
--instui-component-tabs-tab-line-height<percentage>125%
--instui-component-tabs-tab-secondary-selected-background<color>LightDarklight-dark(#1D354F, #EEF4FD)
--instui-component-tabs-tab-secondary-selected-border-color<color>LightDarklight-dark(#1D354F, #EEF4FD)
--instui-component-tabs-tab-secondary-selected-text-color<color>LightDarklight-dark(#ffffff, #1C222B)
--instui-component-tabs-tab-secondary-text-color<color>LightDarklight-dark(#273540, #ffffff)