Skip to content

Commit

Permalink
fix: modified _number-input.scss:91 (#15421)
Browse files Browse the repository at this point in the history
* fix: modified _number-input.scss:91

* fix: put back to 128px

* fix: adjust padding on invalid state

* fix: put back 128px
  • Loading branch information
dev-ghostly authored Dec 27, 2023
1 parent cd036d0 commit 0382e35
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react/src/components/DatePicker/DatePicker-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ describe('Simple date picker', () => {
default: module.DatePickerInput,
}))
);

render(
<React.Suspense fallback="Loading">
<LazyDatePicker datePickerType="single">
Expand All @@ -222,6 +223,7 @@ describe('Simple date picker', () => {
</LazyDatePicker>
</React.Suspense>
);

const labeledElement = await screen.findByLabelText('Date Picker label');
expect(labeledElement).toBeInTheDocument();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,13 @@

// No steppers
.#{$prefix}--number--nosteppers input[type='number'] {
padding-inline-end: 0;
}

.#{$prefix}--number--nosteppers input[type='number'][data-invalid],
.#{$prefix}--number--nosteppers
.#{$prefix}--number__input-wrapper--warning
input[type='number'] {
padding-inline-end: convert.to-rem(48px);
}

Expand Down

0 comments on commit 0382e35

Please sign in to comment.