Repository navigation
Docs: wrap the form text example in a form field - #43274
Merged
Merged
Conversation
…spacing Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The "Form text" section of the form control page says a top margin is added to a block-level
.form-text, and its example sits right under the input with no gap. In v6.form-texthas no margin: it was commented out in #42308 and the unused token was removed in #43223, because the spacing now comes from the parent.form-fieldgrid gap.The migration guide says so:
The docs example never got that wrapper.
The block example is now wrapped in a
.form-field, which gives the label, input and text the same.5remgap as the other examples on the page, and the sentence says.form-textsets no margin of its own and points to the form field page. The inline example stays as it is.Fixes #43271.
🤖 Generated with Claude Code