An open source design system that's fully customizable and agent ready
TypeScript
fix(core): floor sm selection-control hit targets to 24px on touch (#4964)
rubyycheung5c16dd6120be
diff --git a/packages/core/src/CheckboxInput/CheckboxInput.tsx b/packages/core/src/CheckboxInput/CheckboxInput.tsxindex eab1c41935..8217c057a0 100644--- a/packages/core/src/CheckboxInput/CheckboxInput.tsx+++ b/packages/core/src/CheckboxInput/CheckboxInput.tsx@@ -81,6 +81,26 @@ const styles = stylex.create({opacity: 0,cursor: 'pointer',zIndex: 1,+ minInlineSize: {+ default: null,+ '@media (pointer: coarse)': '24px',+ },+ minBlockSize: {+ default: null,+ '@media (pointer: coarse)': '24px',+ },+ insetBlockStart: {+ default: null,+ '@media (pointer: coarse)': '50%',+ },+ insetInlineStart: {+ default: null,+ '@media (pointer: coarse)': '50%',+ },+ transform: {+ default: null,+ '@media (pointer: coarse)': 'translate(-50%, -50%)',+ },},inputDisabled: {cursor: 'not-allowed',diff --git a/packages/core/src/RadioList/RadioListItem.tsx b/packages/core/src/RadioList/RadioListItem.tsxindex a4b6cbd14d..c44c16d682 100644--- a/packages/core/src/RadioList/RadioListItem.tsx+++ b/packages/core/src/RadioList/RadioListItem.tsx@@ -51,6 +51,26 @@ const styles = stylex.create({opacity: 0,cursor: 'pointer',zIndex: 1,+ minInlineSize: {+ default: null,+ '@media (pointer: coarse)': '24px',+ },+ minBlockSize: {+ default: null,+ '@media (pointer: coarse)': '24px',+ },+ insetBlockStart: {+ default: null,+ '@media (pointer: coarse)': '50%',+ },+ insetInlineStart: {+ default: null,+ '@media (pointer: coarse)': '50%',+ },+ transform: {+ default: null,+ '@media (pointer: coarse)': 'translate(-50%, -50%)',+ },},inputDisabled: {cursor: 'not-allowed',diff --git a/packages/core/src/Switch/Switch.tsx b/packages/core/src/Switch/Switch.tsxindex afa92bdec6..fba33a2212 100644--- a/packages/core/src/Switch/Switch.tsx+++ b/packages/core/src/Switch/Switch.tsx@@ -156,6 +156,26 @@ const styles = stylex.create({opacity: 0,cursor: 'pointer',zIndex: 1,+ minInlineSize: {+ default: null,+ '@media (pointer: coarse)': '24px',+ },+ minBlockSize: {+ default: null,+ '@media (pointer: coarse)': '24px',+ },+ insetBlockStart: {+ default: null,+ '@media (pointer: coarse)': '50%',+ },+ insetInlineStart: {+ default: null,+ '@media (pointer: coarse)': '50%',+ },+ transform: {+ default: null,+ '@media (pointer: coarse)': 'translate(-50%, -50%)',+ },},inputDisabled: {cursor: 'not-allowed',