Skip to content

Conversation

@myabc
Copy link
Collaborator

@myabc myabc commented Dec 11, 2025

Salient commits from upstream PR primer#3801, cherry-picked onto our fork's main branch. This is primary so that we can use our own testing infrastructure to visual regression test.

⚠️ Ideally this PR will go away if we manage to get the changes upstreamed. (let's try to keep discussion there, for the time-being.
⚠️ Conflicts resolved - but this may break our modifications to TextField, e.g. input_size support.

OpenProject tickets

https://community.openproject.org/wp/69504

@changeset-bot
Copy link

changeset-bot bot commented Dec 11, 2025

⚠️ No Changeset found

Latest commit: af11efa

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Also renders clear button using an `IconButton`.

Rough mapping:

| Primer View Components                    | Primer React                                         |
| ----------------------------------------- | ---------------------------------------------------- |
| `.FormControl-input-baseWrap` (new class) | `.TextInputBaseWrapper`                              |
| `.FormControl-input-wrap`                 | `.TextInputWrapper`                                  |
| `.FormControl-input-trailingVisualWrap`   | `.TextInput-icon`                                    |
| `.FormControl-input-leadingVisualWrap`    | `.TextInput-icon`                                    |
| `.FormControl-input-trailingAction`       | `.TextInput-icon`                                    |
| `.FormControl-input`                      | `input`                                              |
| `.FormControl-input-wrap--leadingVisual`  | `[data-leading-visual]`                              |
| `.FormControl-input-wrap--trailingVisual` | `[data-trailing-visual]:not([data-trailing-action])` |
| `.FormControl-input-wrap--trailingAction` | `[data-trailing-action]`                             |
| `.FormControl-input-wrap--small`          | `[data-size='small']`                                |
| `.FormControl-input-wrap--large`          | `[data-size='large']`                                |

Closes primer#3800
Closes primer#3802
Closes primer#3803
@myabc myabc force-pushed the bug/69504-text-field-trailing-text-truncation-opf-integration branch from efe6abe to af11efa Compare December 11, 2025 22:33
@myabc myabc changed the title [#69504] Port Primer React Text Field styling, removing trailing text truncation [#69504] Port Primer React Text Field styling, removing trailing text truncation [OPF integration] Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants