-
Notifications
You must be signed in to change notification settings - Fork 115
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
Input width attribute #2363
Input width attribute #2363
Conversation
Update main branch from base repo
Update from Main
Update from base repo
Update from main repo
… branch that will never exist
Adapt CI and release process to OP
Correct package name
Release Tracking
Create ruby gem
Release Tracking
Rename gem
Release Tracking
Update from base repo
Don't show a border on mobile below the PageHeader
Release Tracking
Update docs
Release Tracking
Bump/primer upstream
Release Tracking
Update from Primer base repo
Release Tracking
- TextField - Select
🦋 Changeset detectedLatest commit: 21bff2a 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 |
Sorry was not meant to be created here. |
@apfohl out of curiosity, where else would it be created? |
@camertron to the main branch of our own fork for now. |
@apfohl ah ok I see 👍 Any chance you'd like to upstream your work? |
@camertron I can prepare a different PR because we diverged quite a bit by now. How are the chances of getting this merged? |
@apfohl apologies for the late reply, I was at RubyConf last week 😎 Now that I think more about it, one of our design goals with the forms framework was to intentionally set field width to 100% and require that developers use the framework's grouping feature for layout, which can put multiple fields in the same logical row. So unfortunately for this particular change, we probably would not merge it unless a strong case could be made. It sounds like you've contributed significantly to the project in your fork, and I would be glad to either take a look at PRs or discuss upstreaming other contributions 😄 |
Thanks for the offer. Currently we are integrating primer as our new design system into our application. I only did a small part. But many of our changes correspond to special needs for our layout. Not sure if anything of this can be pushed to upstream. I'm not the expert for this. |
This PR adds a new
width
attribute to inputs.There are five possible values:
full
: 100%wide
: 72remhalf
: 48remnarrow
: 32remslim
: 16remI chose these value arbitrarily with some looks at our specified designs. So feel free to suggest others or wait for input from design. We can change them at a later point.
The new attribute is active for:
TextField
Select
As I only need these right now. But it super easy to add them to other components as well.
You can use the attribute like this: