Skip to content

Commit 6577d13

Browse files
committed
feat(thumbnail-opacity-checkboard): drop unnecessary styles
1 parent fe7f457 commit 6577d13

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

.changeset/twenty-tables-know.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"@spectrum-css/thumbnail": major
44
---
55

6-
# thumbnail-pacity-checkerboard S2 migration
6+
# thumbnail-opacity-checkerboard S2 migration
77

88
Adds thumbnail specific `thumbnail-opacity-checkerboard-square-size` token aliased to `--spectrum-opacity-checkerboard-size`. This impacts the display of the `opacity-checkerboard` when used within the `thumbnail` component.

components/opacitycheckerboard/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ permissions and limitations under the License. */
2222
background: repeating-conic-gradient(var(--mod-opacity-checkerboard-light, var(--spectrum-opacity-checkerboard-light)) 0% 25%, var(--mod-opacity-checkerboard-dark, var(--spectrum-opacity-checkerboard-dark)) 0% 50%) var(--mod-opacity-checkerboard-position, var(--spectrum-opacity-checkerboard-position)) / calc(var(--mod-opacity-checkerboard-size, var(--spectrum-opacity-checkerboard-size)) * 2) calc(var(--mod-opacity-checkerboard-size, var(--spectrum-opacity-checkerboard-size)) * 2);
2323

2424
.spectrum-Thumbnail & {
25-
--spectrum-opacity-checkerboard-size: var(--spectrum-thumbnail-opacity-checkerboard-square- size);
25+
--spectrum-opacity-checkerboard-size: var(--spectrum-thumbnail-opacity-checkerboard-square-size);
2626
}
2727
}
2828

components/thumbnail/index.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,6 @@ governing permissions and limitations under the License.
9292

9393
border-radius: var(--mod-thumbnail-border-radius, var(--spectrum-thumbnail-border-radius));
9494

95-
& .spectrum-OpacityCheckerboard {
96-
--spectrum-opacity-checkerboard-size: var(--spectrum-thumbnail-opacity-checkerboard-square-size);
97-
}
98-
9995
&::before {
10096
content: "";
10197
z-index: 2;

0 commit comments

Comments
 (0)