-
- Loading
-
,
- .c3 {
+ .c4 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
@@ -6208,28 +6234,18 @@ exports[`TextInput renders with a loading indicator 1`] = `
position: relative;
}
-.c5 {
+.c6 {
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
}
-.c4 {
+.c5 {
visibility: hidden;
}
-.c7:not(:focus):not(:active):not(:focus-within) {
- -webkit-clip-path: inset(50%);
- clip-path: inset(50%);
- height: 1px;
- overflow: hidden;
- position: absolute;
- white-space: nowrap;
- width: 1px;
-}
-
-.c6 {
+.c7 {
-webkit-animation: rotate-keyframes 1s linear infinite;
animation: rotate-keyframes 1s linear infinite;
position: absolute;
@@ -6240,6 +6256,19 @@ exports[`TextInput renders with a loading indicator 1`] = `
right: 0;
}
+.c3 {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ -webkit-clip: rect(0,0,0,0);
+ clip: rect(0,0,0,0);
+ white-space: nowrap;
+ border-width: 0;
+}
+
.c0 {
font-size: 14px;
line-height: 20px;
@@ -6367,21 +6396,29 @@ exports[`TextInput renders with a loading indicator 1`] = `
onClick={[Function]}
>
+
+ Loading
+
@@ -6477,16 +6507,6 @@ exports[`TextInput renders with a loading indicator 1`] = `
visibility: visible;
}
-.c6:not(:focus):not(:active):not(:focus-within) {
- -webkit-clip-path: inset(50%);
- clip-path: inset(50%);
- height: 1px;
- overflow: hidden;
- position: absolute;
- white-space: nowrap;
- width: 1px;
-}
-
.c5 {
-webkit-animation: rotate-keyframes 1s linear infinite;
animation: rotate-keyframes 1s linear infinite;
@@ -6509,6 +6529,19 @@ exports[`TextInput renders with a loading indicator 1`] = `
right: 0;
}
+.c7 {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ -webkit-clip: rect(0,0,0,0);
+ clip: rect(0,0,0,0);
+ white-space: nowrap;
+ border-width: 0;
+}
+
.c0 {
font-size: 14px;
line-height: 20px;
@@ -6610,7 +6643,7 @@ exports[`TextInput renders with a loading indicator 1`] = `
padding-right: 0;
}
-.c7 {
+.c6 {
border: 0;
font-size: inherit;
font-family: inherit;
@@ -6620,7 +6653,7 @@ exports[`TextInput renders with a loading indicator 1`] = `
width: 100%;
}
-.c7:focus {
+.c6:focus {
outline: 0;
}
@@ -6650,6 +6683,7 @@ exports[`TextInput renders with a loading indicator 1`] = `
-
- Loading
-
+
+ Loading
+
-
- Loading
-
@@ -6835,16 +6863,6 @@ exports[`TextInput renders with a loading indicator 1`] = `
visibility: visible;
}
-.c6:not(:focus):not(:active):not(:focus-within) {
- -webkit-clip-path: inset(50%);
- clip-path: inset(50%);
- height: 1px;
- overflow: hidden;
- position: absolute;
- white-space: nowrap;
- width: 1px;
-}
-
.c5 {
-webkit-animation: rotate-keyframes 1s linear infinite;
animation: rotate-keyframes 1s linear infinite;
@@ -6867,6 +6885,19 @@ exports[`TextInput renders with a loading indicator 1`] = `
right: 0;
}
+.c7 {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ -webkit-clip: rect(0,0,0,0);
+ clip: rect(0,0,0,0);
+ white-space: nowrap;
+ border-width: 0;
+}
+
.c0 {
font-size: 14px;
line-height: 20px;
@@ -6960,7 +6991,7 @@ exports[`TextInput renders with a loading indicator 1`] = `
padding-right: 0;
}
-.c7 {
+.c6 {
border: 0;
font-size: inherit;
font-family: inherit;
@@ -6970,7 +7001,7 @@ exports[`TextInput renders with a loading indicator 1`] = `
width: 100%;
}
-.c7:focus {
+.c6:focus {
outline: 0;
}
@@ -6999,6 +7030,7 @@ exports[`TextInput renders with a loading indicator 1`] = `
-
- Loading
-
+
+ Loading
+
-
- Loading
-
@@ -7184,16 +7210,6 @@ exports[`TextInput renders with a loading indicator 1`] = `
visibility: visible;
}
-.c6:not(:focus):not(:active):not(:focus-within) {
- -webkit-clip-path: inset(50%);
- clip-path: inset(50%);
- height: 1px;
- overflow: hidden;
- position: absolute;
- white-space: nowrap;
- width: 1px;
-}
-
.c5 {
-webkit-animation: rotate-keyframes 1s linear infinite;
animation: rotate-keyframes 1s linear infinite;
@@ -7216,6 +7232,19 @@ exports[`TextInput renders with a loading indicator 1`] = `
right: 0;
}
+.c7 {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ -webkit-clip: rect(0,0,0,0);
+ clip: rect(0,0,0,0);
+ white-space: nowrap;
+ border-width: 0;
+}
+
.c0 {
font-size: 14px;
line-height: 20px;
@@ -7315,7 +7344,7 @@ exports[`TextInput renders with a loading indicator 1`] = `
padding-right: 0;
}
-.c7 {
+.c6 {
border: 0;
font-size: inherit;
font-family: inherit;
@@ -7325,7 +7354,7 @@ exports[`TextInput renders with a loading indicator 1`] = `
width: 100%;
}
-.c7:focus {
+.c6:focus {
outline: 0;
}
@@ -7355,6 +7384,7 @@ exports[`TextInput renders with a loading indicator 1`] = `
-
- Loading
-
+
+ Loading
+
-
- Loading
-
diff --git a/packages/react/src/__tests__/__snapshots__/TextInputWithTokens.test.tsx.snap b/packages/react/src/__tests__/__snapshots__/TextInputWithTokens.test.tsx.snap
index 02e48cf533e..0cad504a1be 100644
--- a/packages/react/src/__tests__/__snapshots__/TextInputWithTokens.test.tsx.snap
+++ b/packages/react/src/__tests__/__snapshots__/TextInputWithTokens.test.tsx.snap
@@ -305,6 +305,7 @@ exports[`TextInputWithTokens renders a leadingVisual and trailingVisual 1`] = `
size="medium"
>
-
- Loading
-
,
- .c6 {
+ .c5 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
@@ -7081,7 +7066,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
flex-grow: 1;
}
-.c6 > * {
+.c5 > * {
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
@@ -7089,7 +7074,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
margin-bottom: 0.25rem;
}
-.c7 {
+.c6 {
-webkit-order: 1;
-ms-flex-order: 1;
order: 1;
@@ -7114,29 +7099,19 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
display: inline-flex;
}
-.c5:not(:focus):not(:active):not(:focus-within) {
- -webkit-clip-path: inset(50%);
- clip-path: inset(50%);
- height: 1px;
- overflow: hidden;
- position: absolute;
- white-space: nowrap;
- width: 1px;
-}
-
.c4 {
-webkit-animation: rotate-keyframes 1s linear infinite;
animation: rotate-keyframes 1s linear infinite;
visibility: visible;
}
-.c13 {
+.c12 {
-webkit-animation: rotate-keyframes 1s linear infinite;
animation: rotate-keyframes 1s linear infinite;
visibility: hidden;
}
-.c11 {
+.c10 {
position: absolute;
width: 1px;
height: 1px;
@@ -7249,7 +7224,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
padding-right: 12px;
}
-.c8 {
+.c7 {
border: 0;
font-size: inherit;
font-family: inherit;
@@ -7260,11 +7235,11 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
height: 100%;
}
-.c8:focus {
+.c7:focus {
outline: 0;
}
-.c9 {
+.c8 {
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
@@ -7297,13 +7272,13 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
padding-right: 0;
}
-.c9:hover {
+.c8:hover {
background-color: var(--bgColor-neutral-muted,var(--color-neutral-muted,rgba(175,184,193,0.2)));
box-shadow: var(--shadow-resting-medium,var(--color-shadow-medium,0 3px 6px rgba(140,149,159,0.15)));
color: var(--fgColor-default,var(--color-fg-default,#1F2328));
}
-.c12 {
+.c11 {
background-color: transparent;
font-family: inherit;
color: currentColor;
@@ -7343,16 +7318,16 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
width: 32px;
}
-.c12:hover,
-.c12:focus {
+.c11:hover,
+.c11:focus {
background-color: var(--bgColor-neutral-muted,var(--color-neutral-muted,rgba(175,184,193,0.2)));
}
-.c12:active {
+.c11:active {
background-color: var(--bgColor-neutral-muted,var(--color-neutral-subtle,rgba(234,238,242,0.5)));
}
-.c10 {
+.c9 {
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-ms-flex-positive: 1;
@@ -7377,11 +7352,11 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
text-decoration: none;
}
-.c10:is(a,button,[tabIndex='0']) {
+.c9:is(a,button,[tabIndex='0']) {
cursor: pointer;
}
-.c10:is(a,button,[tabIndex='0']):after {
+.c9:is(a,button,[tabIndex='0']):after {
content: '';
position: absolute;
left: 0;
@@ -7417,7 +7392,6 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
>
-
- Loading
-
@@ -7976,16 +7937,6 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
display: inline-flex;
}
-.c12:not(:focus):not(:active):not(:focus-within) {
- -webkit-clip-path: inset(50%);
- clip-path: inset(50%);
- height: 1px;
- overflow: hidden;
- position: absolute;
- white-space: nowrap;
- width: 1px;
-}
-
.c11 {
-webkit-animation: rotate-keyframes 1s linear infinite;
animation: rotate-keyframes 1s linear infinite;
@@ -8690,7 +8641,6 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
>
-
- Loading
-
,
- .c7 {
+ .c6 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
@@ -8749,7 +8693,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
flex-grow: 1;
}
-.c7 > * {
+.c6 > * {
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
@@ -8757,7 +8701,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
margin-bottom: 0.25rem;
}
-.c8 {
+.c7 {
-webkit-order: 1;
-ms-flex-order: 1;
order: 1;
@@ -8786,17 +8730,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
visibility: hidden;
}
-.c6:not(:focus):not(:active):not(:focus-within) {
- -webkit-clip-path: inset(50%);
- clip-path: inset(50%);
- height: 1px;
- overflow: hidden;
- position: absolute;
- white-space: nowrap;
- width: 1px;
-}
-
-.c14 {
+.c13 {
-webkit-animation: rotate-keyframes 1s linear infinite;
animation: rotate-keyframes 1s linear infinite;
visibility: hidden;
@@ -8813,7 +8747,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
left: 0;
}
-.c12 {
+.c11 {
position: absolute;
width: 1px;
height: 1px;
@@ -8926,7 +8860,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
padding-right: 12px;
}
-.c9 {
+.c8 {
border: 0;
font-size: inherit;
font-family: inherit;
@@ -8937,11 +8871,11 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
height: 100%;
}
-.c9:focus {
+.c8:focus {
outline: 0;
}
-.c10 {
+.c9 {
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
@@ -8974,13 +8908,13 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
padding-right: 0;
}
-.c10:hover {
+.c9:hover {
background-color: var(--bgColor-neutral-muted,var(--color-neutral-muted,rgba(175,184,193,0.2)));
box-shadow: var(--shadow-resting-medium,var(--color-shadow-medium,0 3px 6px rgba(140,149,159,0.15)));
color: var(--fgColor-default,var(--color-fg-default,#1F2328));
}
-.c13 {
+.c12 {
background-color: transparent;
font-family: inherit;
color: currentColor;
@@ -9020,16 +8954,16 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
width: 32px;
}
-.c13:hover,
-.c13:focus {
+.c12:hover,
+.c12:focus {
background-color: var(--bgColor-neutral-muted,var(--color-neutral-muted,rgba(175,184,193,0.2)));
}
-.c13:active {
+.c12:active {
background-color: var(--bgColor-neutral-muted,var(--color-neutral-subtle,rgba(234,238,242,0.5)));
}
-.c11 {
+.c10 {
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-ms-flex-positive: 1;
@@ -9054,11 +8988,11 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
text-decoration: none;
}
-.c11:is(a,button,[tabIndex='0']) {
+.c10:is(a,button,[tabIndex='0']) {
cursor: pointer;
}
-.c11:is(a,button,[tabIndex='0']):after {
+.c10:is(a,button,[tabIndex='0']):after {
content: '';
position: absolute;
left: 0;
@@ -9119,7 +9053,6 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
>
-
- Loading
-
,
- .c7 {
+ .c6 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
@@ -9650,7 +9570,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
flex-grow: 1;
}
-.c7 > * {
+.c6 > * {
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
@@ -9658,7 +9578,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
margin-bottom: 0.25rem;
}
-.c8 {
+.c7 {
-webkit-order: 1;
-ms-flex-order: 1;
order: 1;
@@ -9687,17 +9607,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
visibility: hidden;
}
-.c6:not(:focus):not(:active):not(:focus-within) {
- -webkit-clip-path: inset(50%);
- clip-path: inset(50%);
- height: 1px;
- overflow: hidden;
- position: absolute;
- white-space: nowrap;
- width: 1px;
-}
-
-.c14 {
+.c13 {
-webkit-animation: rotate-keyframes 1s linear infinite;
animation: rotate-keyframes 1s linear infinite;
visibility: hidden;
@@ -9714,7 +9624,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
left: 0;
}
-.c12 {
+.c11 {
position: absolute;
width: 1px;
height: 1px;
@@ -9827,7 +9737,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
padding-right: 12px;
}
-.c9 {
+.c8 {
border: 0;
font-size: inherit;
font-family: inherit;
@@ -9838,11 +9748,11 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
height: 100%;
}
-.c9:focus {
+.c8:focus {
outline: 0;
}
-.c10 {
+.c9 {
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
@@ -9875,13 +9785,13 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
padding-right: 0;
}
-.c10:hover {
+.c9:hover {
background-color: var(--bgColor-neutral-muted,var(--color-neutral-muted,rgba(175,184,193,0.2)));
box-shadow: var(--shadow-resting-medium,var(--color-shadow-medium,0 3px 6px rgba(140,149,159,0.15)));
color: var(--fgColor-default,var(--color-fg-default,#1F2328));
}
-.c13 {
+.c12 {
background-color: transparent;
font-family: inherit;
color: currentColor;
@@ -9921,16 +9831,16 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
width: 32px;
}
-.c13:hover,
-.c13:focus {
+.c12:hover,
+.c12:focus {
background-color: var(--bgColor-neutral-muted,var(--color-neutral-muted,rgba(175,184,193,0.2)));
}
-.c13:active {
+.c12:active {
background-color: var(--bgColor-neutral-muted,var(--color-neutral-subtle,rgba(234,238,242,0.5)));
}
-.c11 {
+.c10 {
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-ms-flex-positive: 1;
@@ -9955,11 +9865,11 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
text-decoration: none;
}
-.c11:is(a,button,[tabIndex='0']) {
+.c10:is(a,button,[tabIndex='0']) {
cursor: pointer;
}
-.c11:is(a,button,[tabIndex='0']):after {
+.c10:is(a,button,[tabIndex='0']):after {
content: '';
position: absolute;
left: 0;
@@ -10020,7 +9930,6 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
>
-
- Loading
-
,
- .c7 {
+ .c6 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
@@ -10551,7 +10447,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
flex-grow: 1;
}
-.c7 > * {
+.c6 > * {
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
@@ -10559,7 +10455,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
margin-bottom: 0.25rem;
}
-.c8 {
+.c7 {
-webkit-order: 1;
-ms-flex-order: 1;
order: 1;
@@ -10588,17 +10484,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
visibility: visible;
}
-.c6:not(:focus):not(:active):not(:focus-within) {
- -webkit-clip-path: inset(50%);
- clip-path: inset(50%);
- height: 1px;
- overflow: hidden;
- position: absolute;
- white-space: nowrap;
- width: 1px;
-}
-
-.c14 {
+.c13 {
-webkit-animation: rotate-keyframes 1s linear infinite;
animation: rotate-keyframes 1s linear infinite;
visibility: visible;
@@ -10615,7 +10501,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
left: 0;
}
-.c12 {
+.c11 {
position: absolute;
width: 1px;
height: 1px;
@@ -10728,7 +10614,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
padding-right: 0;
}
-.c9 {
+.c8 {
border: 0;
font-size: inherit;
font-family: inherit;
@@ -10739,11 +10625,11 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
height: 100%;
}
-.c9:focus {
+.c8:focus {
outline: 0;
}
-.c10 {
+.c9 {
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
@@ -10776,13 +10662,13 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
padding-right: 0;
}
-.c10:hover {
+.c9:hover {
background-color: var(--bgColor-neutral-muted,var(--color-neutral-muted,rgba(175,184,193,0.2)));
box-shadow: var(--shadow-resting-medium,var(--color-shadow-medium,0 3px 6px rgba(140,149,159,0.15)));
color: var(--fgColor-default,var(--color-fg-default,#1F2328));
}
-.c13 {
+.c12 {
background-color: transparent;
font-family: inherit;
color: currentColor;
@@ -10822,16 +10708,16 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
width: 32px;
}
-.c13:hover,
-.c13:focus {
+.c12:hover,
+.c12:focus {
background-color: var(--bgColor-neutral-muted,var(--color-neutral-muted,rgba(175,184,193,0.2)));
}
-.c13:active {
+.c12:active {
background-color: var(--bgColor-neutral-muted,var(--color-neutral-subtle,rgba(234,238,242,0.5)));
}
-.c11 {
+.c10 {
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-ms-flex-positive: 1;
@@ -10856,11 +10742,11 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
text-decoration: none;
}
-.c11:is(a,button,[tabIndex='0']) {
+.c10:is(a,button,[tabIndex='0']) {
cursor: pointer;
}
-.c11:is(a,button,[tabIndex='0']):after {
+.c10:is(a,button,[tabIndex='0']):after {
content: '';
position: absolute;
left: 0;
@@ -10921,7 +10807,6 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
>
-
- Loading
-