Skip to content

Commit 6cfb186

Browse files
committed
feat: remove hit area from Radio/Checkbox
1 parent fee4fc9 commit 6cfb186

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

components/checkbox/index.css

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,8 @@ governing permissions and limitations under the License.
5252
/* Remove the padding for [type="checkbox"] in IE 10-. */
5353
padding: 0;
5454

55-
/* Hit area */
5655
position: absolute;
57-
inset-block-start: 0;
58-
inset-inline-start: calc(var(--spectrum-checkbox-cursor-hit-x) * -1);
59-
inline-size: calc(100% + var(--spectrum-checkbox-cursor-hit-x) * 2);
56+
inline-size: 100%;
6057
block-size: 100%;
6158

6259
opacity: .0001;

components/radio/index.css

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,8 @@ governing permissions and limitations under the License.
5858
/* Remove the padding for [type="radio"] in IE 10-. */
5959
padding: 0;
6060

61-
/* Hit area */
6261
position: absolute;
63-
inset-block-start: 0;
64-
inset-inline-start: calc(var(--spectrum-radio-cursor-hit-x) * -1);
65-
inline-size: calc(100% + var(--spectrum-radio-cursor-hit-x) * 2);
62+
inline-size: 100%;
6663
block-size: 100%;
6764

6865
opacity: .0001;

0 commit comments

Comments
 (0)