An open source design system that's fully customizable and agent ready
TypeScript
fix(Field): contain z-index stacking context in inputStatusWrapper (#1890)
Cindy Zhangd9d6342feb7b
diff --git a/packages/core/src/Field/XDSField.tsx b/packages/core/src/Field/XDSField.tsxindex 4fe5055985..ef18deffca 100644--- a/packages/core/src/Field/XDSField.tsx+++ b/packages/core/src/Field/XDSField.tsx@@ -34,6 +34,7 @@ const styles = stylex.create({inputStatusWrapper: {display: 'flex',flexDirection: 'column',+ isolation: 'isolate',},});diff --git a/packages/core/src/TextInput/XDSTextInput.tsx b/packages/core/src/TextInput/XDSTextInput.tsxindex 428047dd64..5817f73bd9 100644--- a/packages/core/src/TextInput/XDSTextInput.tsx+++ b/packages/core/src/TextInput/XDSTextInput.tsx@@ -47,9 +47,6 @@ import {XDSIcon, renderIconSlot, type XDSIconType} from '../Icon';import {XDSSpinner} from '../Spinner';const styles = stylex.create({- wrapper: {- zIndex: 1,- },clearButton: {display: 'flex',alignItems: 'center',@@ -363,7 +360,6 @@ export function XDSTextInput({xdsClassName('text-input', {size, status: status?.type ?? null}),stylex.props(inputWrapperStyles.base,- styles.wrapper,sizeStyles[size],isDisabled && inputWrapperStyles.disabled,status && inputStatusBorderStyles[status.type],