Skip to content

fix(design): apply form field control right padding removal only when action is present#4492

Merged
xelaint merged 1 commit into
developfrom
style/form-field
May 23, 2026
Merged

fix(design): apply form field control right padding removal only when action is present#4492
xelaint merged 1 commit into
developfrom
style/form-field

Conversation

@xelaint
Copy link
Copy Markdown
Member

@xelaint xelaint commented May 23, 2026

PR Checklist

  • Commit message follows our contributing guidelines
  • Tests added/updated (for bug fixes/features)
  • Documentation added/updated (for bug fixes/features)

PR Type

  • Bug fix
  • Feature
  • Style update
  • Refactor
  • Test
  • Build
  • CI
  • Docs
  • Performance
  • Other (please describe)

Current behavior

#4462 added a padding-right: 0; to the control. This was to prevent extra padding when a form field is in fluid appearance with a action button. This didn't account for the fact that a custom select's open arrow will not be padded correctly.

Fixes: #
Part of: #

New behavior

Add a new .has-action class to style controls when a daffFormFieldAction is present.

Breaking change?

  • Yes
  • No

Additional context

@xelaint xelaint requested a review from a team as a code owner May 23, 2026 02:27
@xelaint xelaint added the package: design @daffodil/design label May 23, 2026
@xelaint xelaint force-pushed the style/form-field branch from 837746a to 4ed36a7 Compare May 23, 2026 02:27
@xelaint xelaint merged commit bc34302 into develop May 23, 2026
15 checks passed
@gray-bot gray-bot mentioned this pull request May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: design @daffodil/design

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant