This repository has been archived by the owner on Aug 12, 2021. It is now read-only.
Component Specifications
zack Frazier edited this page Aug 21, 2017
·
23 revisions
Class | Modifiers | States | Accessibility | |
---|---|---|---|---|
Block | .tn-button |
&--primary , &--default , &--subordinate , &--icon , &--danger , &--link , &--add
|
&.is-disabled , [disabled]
|
[role="button"] |
Elements |
.tn-button__icon (optional) |
&--back-to-top |
&.tn-icon-{icon} ° |
[aria-label=""] |
° Note: This is a required child of .tn-button--icon
more than a state.
Class | Modifiers | States | Accessibility | |
---|---|---|---|---|
Block | .tn-button-group |
&.is-disabled , [disabled]
|
[role="radiogroup"] |
|
Elements | .tn-button-group__button |
&--primary |
&.is-active ,&.is-disabled ,[disabled] ,[aria-selected="true"]
|
[role="radio"] |
Class | Modifiers | States | Accessibility | |
---|---|---|---|---|
Block | .tn-form |
|||
Elements |
.tn-form__set (optional) |
&.has-error , &.is-disabled , [disabled] , [readonly] , .is-readonly
|
||
.tn-form__group |
.has-error , &.is-disabled , [disabled] , [readonly] , .is-readonly
|
|||
.tn-form__label (optional) |
&.is-required |
[for] |
||
.tn-form__tooltip (optional) |
&--align-right |
|||
.tn-form__control |
&.is-valid , .is-required , [required] , [readonly]
|
[id] , [aria-describedby] , [aria-label]
|
||
.tn-form__message (optional) |
&--help |
&.is-error |
[id] |
Class | Modifiers | States | Accessibility | |
---|---|---|---|---|
Block | .tn-input-group |
|||
.tn-input-group__addon |
&--btn-up ,&--btn-down
|
[role="checkbox"] , [aria-label]
|
Class | Modifiers | States | Accessibility | |
---|---|---|---|---|
Block | .tn-toggle |
&--large |
[aria-checked="true"] |
[role="checkbox"] ,[aria-label]
|
Elements | .tn-toggle__input |
|||
.tn-toggle__label (optional) |
&[data-activelabel] ,&[data-inactivelabel]
|
Class | Modifiers | States | Accessibility | |
---|---|---|---|---|
Block | .tn-contextual-menu |
|||
Elements | .tn-contextual-menu__toggle |
[aria-label] ,[aria-haspopup="true"] ,[aria-controls]
|
||
.tn-contextual-menu__list |
.is-expanded , [aria-expanded="true"]
|
[id] |
||
.tn-contextual-menu__header (optional) |
||||
.tn-contextual-menu__listitem |
||||
.tn-contextual-menu__listlink (optional) |
Class | Modifiers | States | Accessibility | |
---|---|---|---|---|
Block | .tn-pagination |
|||
Elements | .tn-pagination__item |
[aria-setsize] ,[aria-posinset]
|
||
.tn-pagination__link |
&--prev ,&--next
|
&.is-disabled , .is-active
|
[aria-label] |
Class | Modifiers | States | Accessibility | |
---|---|---|---|---|
Block | .tn-tabs |
&--centered |
[role="tablist"] |
|
Elements | .tn-tabs__tab |
.is-selected ,[aria-selected]
|
[role="tab"] ,[aria-controls]
|
Class | Modifiers | States | Accessibility | |
---|---|---|---|---|
Block | .tn-tabpanel |
.is-hidden ,[aria-hidden]
|
[role="tabpanel"] , [id]
|
Composite component, uses .tn-button
Class | Modifiers | States | Accessibility | |
---|---|---|---|---|
Block | .tn-actionbar |
|||
Elements | .tn-actionbar__nav |
|||
.tn-actionbar__title |
||||
.tn-actionbar__actions |
[aria-live] |
Class | Modifiers | States | Accessibility | |
---|---|---|---|---|
Block | .tn-list-group |
|||
Elements | .tn-list-group__item |
Class | Modifiers | States | Accessibility | |
---|---|---|---|---|
Block | .tn-card-group |
|||
Elements | .tn-card-group__footer |
Class | Modifiers | States | Accessibility | |
---|---|---|---|---|
Block | .tn-card |
&--full-width , &--stacked , &--button , &--media
|
.is-disabled ,[disabled] , .is-inactive
|
[role="button"] |
Elements | .tn-card__content |
|||
.tn-card__media |
&--vertical ,&--padded
|
Class | Modifiers | States | Accessibility | |
---|---|---|---|---|
Block | .tn-spinner |
|||
Elements | .tn-spinner__circle |
Class | Modifiers | States | Accessibility | |
---|---|---|---|---|
Block | .tn-hint |
&--up ,&--right
|
||
Elements | .tn-hint__icon |
[aria-label] ,[aria-describedby]
|
||
.tn-hint__text |
[id] ,[role="tooltip"] ^
|
Class | Modifiers | States | Accessibility | |
---|---|---|---|---|
Block | .tn-tooltip |
&--up ,&--right
|
[id] ,[role="tooltip"] ^
|
|
Elements | .tn-tooltip__text |
Class | Modifiers | States | Accessibility | |
---|---|---|---|---|
Block | .tn-popover |
[id] ,[role="tooltip"] ^
|
||
Elements | .tn-popover__title |
|||
.tn-popover__text |
Class | Modifiers | States | Accessibility | |
---|---|---|---|---|
Block | .tn-status |
&--inactive ,&--success ,&--warning ,&--error
|
||
Block | .tn-badge |
&--inactive ,&--success ,&--warning ,&--error
|
Class | Modifiers | States | Accessibility | |
---|---|---|---|---|
Block | .tn-zoom |
|||
Elements | .tn-zoom__media |
|||
.tn-zoom__action |