Skip to content

Commit ef52e4f

Browse files
authored
removing checkbox appearance when touch scrolling on mobile (#2823)
1 parent cea8e27 commit ef52e4f

File tree

1 file changed

+3
-6
lines changed
  • packages/@adobe/spectrum-css-temp/components/card

1 file changed

+3
-6
lines changed

packages/@adobe/spectrum-css-temp/components/card/index.css

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,9 @@ user-provided
129129
calc(50% - calc(var(--spectrum-checkbox-box-size) / 2));
130130
}
131131

132-
&.is-focused,
133132
&.is-selected,
134133
&.focus-ring, /* only for visible focus */
135-
&:hover {
134+
&.is-hovered {
136135
.spectrum-Card-checkboxWrapper {
137136
/* Ideally, this would simply apply is-open to the QuickActions component */
138137
visibility: visible;
@@ -951,8 +950,7 @@ For now working around it with a useLayoutEffect in CardBase.
951950
}
952951
&.is-focused,
953952
&.is-selected,
954-
&:focus,
955-
&:hover {
953+
&.is-hovered {
956954
.spectrum-Card-checkboxWrapper {
957955
display: none;
958956
}
@@ -1039,8 +1037,7 @@ For now working around it with a useLayoutEffect in CardBase.
10391037
}
10401038
&.is-focused,
10411039
&.is-selected,
1042-
&:focus,
1043-
&:hover {
1040+
&.is-hovered {
10441041
.spectrum-Card-checkboxWrapper {
10451042
display: none;
10461043
}

0 commit comments

Comments
 (0)