Skip to content

Add textAlign to Paragraph and improve JSDoc#4481

Merged
justinhenricks merged 1 commit into
2026-04from
jh/add-text-align-paragraph-2026-04
May 21, 2026
Merged

Add textAlign to Paragraph and improve JSDoc#4481
justinhenricks merged 1 commit into
2026-04from
jh/add-text-align-paragraph-2026-04

Conversation

@justinhenricks
Copy link
Copy Markdown
Contributor

Backport of #4455 to 2026-04.

TLDR

Add textAlign to ParagraphElementProps and replace the type prop, aligning ui-extensions types with the underlying component change.

What changed

  • Added textAlign prop ('start' | 'end' | 'center' | 'auto') to ParagraphElementProps
  • Removed type prop ('paragraph' | 'small')
  • Added @publicDocs annotations to ParagraphElement and ParagraphProps
  • Improved JSDoc for BaseElementProps, BaseElementPropsWithChildren

@github-actions
Copy link
Copy Markdown
Contributor

🚨🚨🚨 Docs migration in progress 🚨🚨🚨

We are actively migrating UI extension reference docs to MDX in the areas/platforms/shopify-dev zone of the monorepo. This impacts docs for the following surfaces:

During this migration, please be aware of the following:

.doc.ts files are being deprecated. Changes to .doc.ts files in this repo will not be reflected in the new MDX-based docs. If you need to update docs for a reference that has already been migrated, make your changes directly in the areas/platforms/shopify-dev zone of the monorepo instead.

Doc comments in .ts source files (the comment blocks above types and functions) are also affected. Generating docs from these comments currently requires a newer version of the @shopify/generate-docs library that isn't yet available. Updates to doc comments may not produce the expected output until the migration is complete.

Examples that previously lived in this repo are being moved to the areas/platforms/shopify-dev zone of the monorepo and should be authored there going forward.

What should I do?

  • If your PR includes changes to .doc.ts files, doc comments, or examples, please reach out to us in #devtools-proj-templated-refs so we can help ensure your updates are captured correctly.
  • If your PR is limited to source code changes (non-docs), you can ignore this notice.

Thanks for your patience while we complete the migration! 🙏

@github-actions github-actions Bot added the needs-rc-port PR against a stable branch awaiting forward-port to the current RC label May 20, 2026
@github-actions
Copy link
Copy Markdown
Contributor

This PR targets a stable release branch (2026-04). Once merged, the change typically also needs to be forward-ported to 2026-07-rc so it ships in the next release.

When you open the forward-port PR, include a line like this in its body so the needs-rc-port label gets removed automatically when that PR merges:

Forward-port of #4481

Accepted formats (comma-separated for multiple):

  • #4481
  • GH-4481
  • 4481
  • https://github.com/Shopify/ui-extensions/pull/4481

If a forward-port isn't needed (e.g., the change is stable-only), you can remove the needs-rc-port label manually.

@justinhenricks justinhenricks force-pushed the jh/add-text-align-paragraph-2026-04 branch from b8f01a4 to bdb667a Compare May 20, 2026 21:28
@robin-drexler robin-drexler removed the needs-rc-port PR against a stable branch awaiting forward-port to the current RC label May 21, 2026
@justinhenricks justinhenricks merged commit d0a2b5c into 2026-04 May 21, 2026
8 checks passed
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.

2 participants