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

Content switcher images #2492

Merged
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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.
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.
14 changes: 7 additions & 7 deletions src/pages/components/content-switcher/style.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ Content switchers have two main states: `selected` and `unselected`. By default,
content switcher buttons are unselected with the selected state using a high
contrast color.

| Class | Property | Color token |
| --------------------------- | ---------------- | ------------- |
| `.bx--content-switcher-btn` | background-color | `$ui-01` |
| `.bx--content-switcher-btn` | text color | `$text-02` |
| `--selected` | background-color | `$ui-05` |
| `--selected` | text color | `$inverse-01` |
| `:after` | divider | `$ui-03` |
| Class | Property | Color token |
| --------------------------- | ---------------- | ---------------- |
| `.bx--content-switcher-btn` | background-color | `$ui-background` |
| `.bx--content-switcher-btn` | text color | `$text-02` |
| `--selected` | background-color | `$ui-05` |
| `--selected` | text color | `$inverse-01` |
| `:after` | divider | `$ui-03` |

### Interactive states

Expand Down
8 changes: 4 additions & 4 deletions src/pages/components/content-switcher/usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ binary decision.
<Row>
<Column colLg={8}>

![Anatomy of a content switcher group.](images/content-switcher-usage-2.png)
![Anatomy of a content switcher group.](images/contentswitcher-usage-2.png)

</Column>
</Row>
Expand Down Expand Up @@ -138,12 +138,12 @@ of all other tabs should match the widest tab.
<DoDontRow>
<DoDont caption="Do base content tab width on the longest text label.">

![Do base content tab width on the longest text label.](images/content-switcher-usage-3-do.png)
![Do base content tab width on the longest text label.](images/contentswitcher-usage-3-do.png)

</DoDont>
<DoDont type="dont" caption="Do not use a different width for each content tab.">

![Do not use a different width for each content tab.](images/content-switcher-usage-3-don't.png)
![Do not use a different width for each content tab.](images/contentswitcher-usage-3-dont.png)

</DoDont>
</DoDontRow>
Expand Down Expand Up @@ -179,7 +179,7 @@ The content switcher includes two content tab states: **selected** and
<Row>
<Column colLg={8}>

![Selected and unselected content switcher states.](images/content-switcher-usage-4.png)
![Selected and unselected content switcher states.](images/contentswitcher-usage-4.png)

</Column>
</Row>
Expand Down