Skip to content

Design guidelines: Form and form control #5047

Open
kaylachumley wants to merge 2 commits into
mainfrom
form-guidelines
Open

Design guidelines: Form and form control #5047
kaylachumley wants to merge 2 commits into
mainfrom
form-guidelines

Conversation

@kaylachumley

@kaylachumley kaylachumley commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Adds a new "Best practices" section with a "Menu toggles and dropdowns in a form" subsection, documenting the use of the pf-m-form modifier and its effect on border radius across themes. Includes a do/don't example image.
@kaylachumley kaylachumley changed the title Updat to Form and form control guidelines Updat to Form and form control design guidelines Jun 30, 2026
@patternfly-build

Copy link
Copy Markdown
Collaborator

Preview: https://pf-org--pr-5047-site.surge.sh

@kaylachumley kaylachumley changed the title Updat to Form and form control design guidelines Update to Form and form control design guidelines Jul 9, 2026
@kaylachumley kaylachumley changed the title Update to Form and form control design guidelines Design guidelines: Form and form control Jul 9, 2026
![Do and don't example showing a menu toggle with the pf-m-form modifier applied (square corners) versus without it (pill shape) in a form context.](./img/form-toggle-modifier.png)
</div>

In the default PatternFly theme, form elements use a square border radius. In the [Felt theme](/foundations-and-styles/theming#project-felt-theme), form elements—including input fields, menu toggles, and dropdowns—use a 6px border radius, while other non-control components use a pill radius. Using `pf-m-form` ensures that your menu toggle always matches the border radius of the surrounding form fields, regardless of theme.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'll add in the token names for the radii with the hard coded values in brackets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Design Guidelines for Form Control Elements (Square vs Pilled)

3 participants