Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrap form autocompleters into primer form classes #17482

Merged
merged 3 commits into from
Dec 18, 2024

Conversation

ulferts
Copy link
Contributor

@ulferts ulferts commented Dec 17, 2024

What are you trying to accomplish?

Wraps the OP specific form inputs for autocompletion (work package, project, color and the generic autocompleter) into a div just like the input fields provided by primer. That div then receives the css classes the primer inputs receive as well. Additionally, it allows providing the input_width parameter so that the width of the input is limited when needed.

Before the change, the dom structure for the color autocompleter looks like this:

image

After, it looks like this:

image

That change is then applied to the status form where the color select now has the same width as the input for the name attribute:

image

The PR also adds a preview for the color select which was missing before.

@toy toy force-pushed the feature/58161-global-stage-administration branch from b63fae5 to d66c408 Compare December 17, 2024 19:17
@ulferts ulferts force-pushed the fix/wrap_form_autocompleters_into_primer_form_classes branch from 81d37f0 to d24ffde Compare December 18, 2024 07:47
@ulferts ulferts changed the base branch from feature/58161-global-stage-administration to dev December 18, 2024 07:48
@ulferts ulferts marked this pull request as ready for review December 18, 2024 09:33
Copy link
Contributor

@HDinger HDinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍 Thanks for the effort

@ulferts ulferts merged commit 2155c10 into dev Dec 18, 2024
14 checks passed
@ulferts ulferts deleted the fix/wrap_form_autocompleters_into_primer_form_classes branch December 18, 2024 12:16
toy added a commit that referenced this pull request Dec 18, 2024
toy added a commit that referenced this pull request Dec 18, 2024
toy added a commit that referenced this pull request Dec 18, 2024
toy added a commit that referenced this pull request Jan 6, 2025
toy added a commit that referenced this pull request Jan 6, 2025
toy added a commit that referenced this pull request Jan 7, 2025
toy added a commit that referenced this pull request Jan 8, 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