-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(opacitycheckerboard): address concerns about inclusion order (…
…#2382) * refactor(opacitycheckerboard): simplfy css * docs(opacitycheckerboard): improve docs * fix(opacitycheckerboard): display in storybook with updated CSS * fix(opacitycheckerboard): only apply inline-size properties to storybook for opacitycheckerboard * docs(opacitycheckerboard): remove new sb heading
- Loading branch information
Showing
5 changed files
with
20 additions
and
12 deletions.
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
12 changes: 6 additions & 6 deletions
12
components/opacitycheckerboard/metadata/opacitycheckerboard.yml
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
name: Opacity Checkerboard | ||
description: Opacity checkerboard is used with other components to highlight opacity. | ||
name: Opacity checkerboard | ||
description: Opacity checkerboard is a class used to highlight background color opacity. | ||
examples: | ||
- id: opacity-checkerboard | ||
name: Opacity Checkerboard | ||
name: Opacity checkerboard | ||
markup: | | ||
<div style="inline-size: 100px; block-size: 100px;"> | ||
<div class="spectrum-OpacityCheckerboard"> | ||
<div class="spectrum-OpacityCheckerboard" style="inline-size: 100%; block-size: 100%;"> | ||
</div> | ||
</div> | ||
- id: opacity-checkerboard | ||
name: Opacity Checkerboard with color overlay | ||
name: Opacity checkerboard with color overlay | ||
markup: | | ||
<div style="inline-size: 100px; block-size: 100px;"> | ||
<div class="spectrum-OpacityCheckerboard"></div> | ||
<div class="spectrum-OpacityCheckerboard" style="inline-size: 100%; block-size: 100%;"></div> | ||
<div style="background-color: rgba(255, 0, 0, 0.5); inline-size: 100%; block-size: 100%; position: relative; inset-block: -100%"></div> | ||
</div> |
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