Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compressed Images Nightly #16

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/pages/components/accordion/usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tabs: ['Usage', 'Style', 'Code', 'Accessibility']

<PageDescription>

An accordion is a vertically stacked list of headers that reveal or hide
THE accordion is a vertically stacked list of headers that reveal or hide
associated sections of content.

</PageDescription>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/pages/components/select/images/select-states-fixed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/pages/components/select/images/select-states-fluid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/pages/components/select/images/select-style-sizes-fluid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 16 additions & 23 deletions src/pages/components/select/style.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,36 +47,29 @@ tabs: ['Usage', 'Style', 'Code', 'Accessibility']

### Interactive states

| State | Element | Property | Color token |
| --------- | --------------- | -------------------------- | ------------------- |
| Hover | Field | background-color | `$field-hover` \* |
| Focus | Field | border | `$focus` |
| Invalid | Field | border | `$support-error` |
| | Error message | text-color | `$text-error` |
| | Error icon | fill | `$support-error` |
| Warning | Warning message | text-color | `$text-primary` |
| | Warning icon | fill | `$support-warning` |
| Disabled | Field | background-color | `$field` \* |
| | | border-bottom (default) | transparent |
| | | border-bottom (fluid) | `$border-subtle` \* |
| | Label | text-color | `$text-disabled` |
| | Input text | text-color | `$text-disabled` |
| | Chevron icon | fill | `$icon-disabled` |
| Read-only | Field | background-color (default) | transparent |
| | | background-color (fluid) | `$field` \* |
| | | border-bottom | `$border-subtle` \* |
| | Label | text-color | `$text-secondary` |
| | Input text | text-color (default) | `$text-primary` |
| | | text-color (fluid) | `$text-secondary` |
| | Chevron icon | fill | `$icon-disabled` |
| State | Element | Property | Color token |
| -------- | --------------- | ---------------- | ------------------- |
| Hover | Field | background-color | `$field-hover` \* |
| Focus | Field | border | `$focus` |
| Invalid | Field | border | `$support-error` |
| | Error message | text-color | `$text-error` |
| | Error icon | fill | `$support-error` |
| Warning | Warning message | text-color | `$text-primary` |
| | Warning icon | fill | `$support-warning` |
| Disabled | Field | background-color | `$field` \* |
| | Input text | text-color | `$text-disabled |
| | Field | border-bottom | transparent |
| | Field (fluid) | border-bottom | `$border-subtle` \* |
| | Label | text-color | `$text-disabled` |
| | Chevron icon | fill | `$icon-disabled` |

<Caption>
* Denotes a contextual color token that will change values based on the layer
it is placed on.
</Caption>

<Row>
<Column colLg={12}>
<Column colLg={8}>

<Tabs>

Expand Down
9 changes: 4 additions & 5 deletions src/pages/components/select/usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ while the dropdown component can be styled as needed.
id: 'select',
label: 'Select',
},
]}
>
]}>
<ComponentVariant
id="select"
knobs={{
Expand All @@ -105,11 +104,11 @@ while the dropdown component can be styled as needed.
'https://react.carbondesignsystem.com/?path=/story/components-select--default',
Angular:
'https://angular.carbondesignsystem.com/?path=/story/components-select--basic',
Vue: 'http://vue.carbondesignsystem.com/?path=/story/components-cvselect--default',
Vue:
'http://vue.carbondesignsystem.com/?path=/story/components-cvselect--default',
'Web Components':
'https://web-components.carbondesignsystem.com/?path=/story/components-select--default',
}}
>
}}>
{`
<Select
defaultValue="placeholder-item"
Expand Down