Skip to content

Commit e50dc58

Browse files
authored
Fix width of number field within a form (#4655)
1 parent 9ac3cba commit e50dc58

File tree

1 file changed

+4
-2
lines changed
  • packages/@adobe/spectrum-css-temp/components/stepper

1 file changed

+4
-2
lines changed

packages/@adobe/spectrum-css-temp/components/stepper/index.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ governing permissions and limitations under the License.
3434

3535
block-size: max-content;
3636

37-
inline-size: var(--spectrum-stepper-default-width-desktop);
37+
--spectrum-stepper-width: var(--spectrum-stepper-default-width-desktop);
38+
inline-size: var(--spectrum-stepper-width);
3839
line-height: 0;
3940
transition: border-color var(--spectrum-global-animation-duration-100) ease-in-out, box-shadow var(--spectrum-global-animation-duration-100) ease-in-out;
4041

@@ -59,7 +60,8 @@ governing permissions and limitations under the License.
5960
}
6061
}
6162
&.spectrum-Stepper--isMobile {
62-
inline-size: var(--spectrum-stepper-default-width-mobile);
63+
/* Use a variable here rather than inline-size directly so we don't conflict with form style override. */
64+
--spectrum-stepper-width: var(--spectrum-stepper-default-width-mobile);
6365
grid-template-rows: auto;
6466
grid-template-columns: auto 1fr auto;
6567
grid-template-areas: 'decrement field increment';

0 commit comments

Comments
 (0)