Skip to content

Components: Use p elements for callout alerts in README docs - #81234

Merged
mirka merged 1 commit into
trunkfrom
fix/components-callout-p-elements
Aug 5, 2026
Merged

Components: Use p elements for callout alerts in README docs#81234
mirka merged 1 commit into
trunkfrom
fix/components-callout-p-elements

Conversation

@mirka

@mirka mirka commented Aug 5, 2026

Copy link
Copy Markdown
Member

What?

Updates callout alert markup in @wordpress/components README files from <div class="callout callout-alert"> to <p class="callout callout-alert">.

Why?

p elements render more legibly than divs when the readme file is viewed on GitHub, because there will be some whitespace between the callout text and the content that follows.

Testing Instructions

  1. Open a few updated README files (for example packages/components/src/grid/README.md) and confirm callout markup uses p elements.
  2. Preview the rendered docs on GitHub and confirm callouts display without running into the content to that follows.

@mirka mirka self-assigned this Aug 5, 2026
@github-actions github-actions Bot added the [Package] Components /packages/components label Aug 5, 2026
@mirka mirka added the [Type] Developer Documentation Documentation for developers label Aug 5, 2026
@mirka
mirka marked this pull request as ready for review August 5, 2026 18:31
@mirka
mirka requested review from a team and ajitbohra as code owners August 5, 2026 18:31
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: mirka <0mirka00@git.wordpress.org>
Co-authored-by: ciampo <mciampini@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@mirka
mirka merged commit 773a915 into trunk Aug 5, 2026
67 of 70 checks passed
@mirka
mirka deleted the fix/components-callout-p-elements branch August 5, 2026 21:35
@github-actions github-actions Bot added this to the Gutenberg 23.8 milestone Aug 5, 2026
shail-mehta pushed a commit that referenced this pull request Aug 12, 2026
Co-authored-by: mirka <0mirka00@git.wordpress.org>
Co-authored-by: ciampo <mciampini@git.wordpress.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Components /packages/components [Type] Developer Documentation Documentation for developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants