admin-ui / Breadcrumbs: stricter items[].to prop types#76493
admin-ui / Breadcrumbs: stricter items[].to prop types#76493
items[].to prop types#76493Conversation
|
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
cc @CGastrell |
|
Size Change: 0 B Total Size: 8.75 MB ℹ️ View Unchanged
|
items[].to prop
items[].to propitems[].to prop types
63a5d94 to
ff216bd
Compare
ff216bd to
709c2d2
Compare
|
The TS error should already be a strong indication (and should ideally prevent the build from completing).
Most of those lines should be redundant, since the Apart from that, fixing styles would not remove the main semantics issue (two or more |
|
Separately, I believe
Not sure who owns this, but cc @WordPress/gutenberg-components @WordPress/gutenberg-design |
|
Flaky tests detected in b4cf231. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/23089135341
|



What?
Related to #76467
Tighten types in admin-ui's
Breadcrumbscomponent to clarify expectations around all items (apart from the last one) to have to specify atopropWhy?
Current types don't specify that requirement, and it's possible to render multiple
<h1>breadcrumb items — which is wrong semantically and breaks the layoutHow?
h1when it has notopropTesting Instructions
Breadcrumbswithout settingtoto one of the (non-last) items — a TS error should be flagged