Skip to content

Commit 3da1518

Browse files
committed
feat: remove hit area from Radio/Checkbox
1 parent 83227ee commit 3da1518

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
@@ -64,11 +64,8 @@ governing permissions and limitations under the License.
6464
/* Remove the padding for [type="radio"] in IE 10-. */
6565
padding: 0;
6666

67-
/* Hit area */
6867
position: absolute;
69-
inset-block-start: 0;
70-
inset-inline-start: calc(var(--spectrum-radio-cursor-hit-x) * -1);
71-
inline-size: calc(100% + var(--spectrum-radio-cursor-hit-x) * 2);
68+
inline-size: 100%;
7269
block-size: 100%;
7370

7471
opacity: 0.0001;

0 commit comments

Comments
 (0)