-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tile): add experimental improved contrast tile (#12711)
* feat(tile): add experimental improved contrast tile closes #12464 * Update ExperimentalTile.stories.js * feat(tile): update feature flag and story * feat(tile): add experimental tile feature flag docs * feat(tile): add improved contrast to vrt * chore: move improved tile to experimental section in storybook * chore: docs Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
- Loading branch information
1 parent
0e42c3a
commit 4196aea
Showing
21 changed files
with
567 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import { Story, Props, Source, Preview } from '@storybook/addon-docs'; | ||
|
||
# Tile | ||
|
||
[Source code](https://github.com/carbon-design-system/carbon/tree/main/packages/react/src/components/Tile) | ||
| | ||
[Usage guidelines](https://www.carbondesignsystem.com/components/tile/usage) | ||
| | ||
[Accessibility](https://www.carbondesignsystem.com/components/tile/accessibility) | ||
|
||
## Improved Contrast Tile | ||
|
||
In Sass, you can enable the improved contrast tiles via a feature flag. | ||
|
||
```scss | ||
@include feature-flags.enable('enable-experimental-tile-contrast'); | ||
``` | ||
|
||
or if you have multiple feature flags you can enable them this way. | ||
|
||
```scss | ||
@use '@carbon/react/scss/feature-flags' with ( | ||
$feature-flags: ( | ||
'enable-experimental-tile-contrast': true, | ||
) | ||
); | ||
``` | ||
|
||
<Preview> | ||
<div style={{ width: '1018px', maxWidth: '100%' }}> | ||
<Story id="experimental-improved-contrast-tile--clickable" /> | ||
</div> | ||
<div style={{ width: '1018px', maxWidth: '100%' }}> | ||
<Story id="experimental-improved-contrast-tile--expandable" /> | ||
</div> | ||
<div style={{ width: '1018px', maxWidth: '100%' }}> | ||
<Story id="experimental-improved-contrast-tile--multi-select" /> | ||
</div> | ||
<div style={{ width: '1018px', maxWidth: '100%' }}> | ||
<Story id="experimental-improved-contrast-tile--radio" /> | ||
</div> | ||
<div style={{ width: '1018px', maxWidth: '100%' }}> | ||
<Story id="experimental-improved-contrast-tile--selectable" /> | ||
</div> | ||
</Preview> | ||
|
||
## Component API | ||
|
||
<Props /> | ||
|
||
## Feedback | ||
|
||
Help us improve this component by providing feedback, asking questions on Slack, | ||
or updating this file on | ||
[GitHub](https://github.com/carbon-design-system/carbon/edit/main/packages/react/src/components/Tile/Tile.mdx). |
Oops, something went wrong.