Repository navigation
refactor(InputWrapper): target truncation by class instead of bare span - #1331
Open
cookieark7 wants to merge 1 commit into
Open
cookieark7 wants to merge 1 commit into
cookieark7 wants to merge 1 commit into
Conversation
The .wrapper and .select-trigger rules matched every first span, including icon wrappers since they became spans. Remove them and give the date range value spans their own class so DateRangePicker and DateTimeRangePicker keep the same computed styles. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: e5379a8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Follow-up to #1302. The
.wrapper span:first-of-typerule inInputWrapperand the.select-trigger span:first-of-typerule inSelectmatched every firstspaninside them, including icon wrappers since those became spans.spanrules.DateRangePickerandDateTimeRangePickera.date-input__valueclass with the same four declarations, so they keep the same computed styles.Links and tickets
Closes #1303
Good to know
What I checked in Storybook before changing anything, across the
forms-input-*,display-datepicker,display-daterangepicker,display-datetimerangepickeranddisplay-autocompletestories (up to 4 per family) plus theSelect,MultiSelectandCheckboxMultiSelectstories:display: inlineinside a block parent, so onlywhite-space: nowraphas an effect on them today. I kept all four declarations on the new class to keep this a pure refactor.overflow: hidden.One consumer-visible difference for the maintainers to weigh: a
spanpassed asstartContentorendContentto a field no longer gets truncation automatically. This is called out in the changeset. If that is not acceptable, a narrower selector on those two slots would keep it.Checklist
Contribution
buildandbuild-storybookwork locallyAccessibility
CSS only, no markup or behavior change beyond a class name on existing spans. Not tested: manual keyboard pass and screen reader output, because nothing interactive changed.
Visual specs run locally in Docker, all passing with no snapshots regenerated:
Select,MultiSelect,CheckboxMultiSelect,inputfield,TextField,PasswordField(4 timeouts on page load that passed on retry),SearchField,NumberField,DatePicker,daterangepicker,datetimerangepicker.🤖 Generated with Claude Code