Repository navigation
Make the API landing page cards the same size and reflow in step - #5014
Conversation
The catalog rendered every card of a group without featured cards as compact. The Orchestration cards now use the full-size card. Only a tag-on attached under its parent stays compact. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Docs preview (local build)Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/5014/ |
…nt (per review by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Each featured card and its Serverless tag-on now share one grid cell. The tag-on stays attached at any column count, so the stack row steps like the Orchestration row. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…vault-gh-plugin-prod) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ew by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…w below (per review by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Opus 5.5 <[email protected]>
| Entry("elasticsearch-serverless", "Elasticsearch Serverless API") | ||
| ); | ||
|
|
||
| Count(html, "api-catalog-cell-tagged").Should().Be(1, "only the cell with a tag-on spans two rows"); |
There was a problem hiding this comment.
Severity: P3 (Low)
Add a browser-level check for the preview catalog's responsive layout. Counting api-catalog-cell-tagged still passes if the preview stylesheet loses its column or subgrid rules entirely, and the existing visual suite only covers the flag-off bundle. Check computed columns and card alignment with navigation preview enabled.
Generated by Libra. React with 👍 or 👎 to give feedback on this comment.
There was a problem hiding this comment.
Not in this PR. A check with the flag on needs a way to start the local test host with a feature flag, because it removes every FEATURE_* variable, or a journey against the demo site. I filed #5022 with the properties to check. I verified them by hand in both layouts for this change.
The cards, the grid gaps and the classic hero are smaller, and descriptions clamp to two lines. On a 1440x900 screen all 11 cards on the assembler build now end above the fold, where 8 did. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ed (per review by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…eview by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Opus 5.5 <[email protected]>
… @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…eview by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…(per review by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…og styles The two-column step moves from 640px to 761px, since the design system allows only the 760, 860 and 1100 breakpoints. The card sizes in the preview bundle are in rem. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The API landing page now shows the Orchestration cards (Elastic Cloud, Cloud Billing, ECE and others) at the same size as the Elasticsearch, Kibana and Logstash cards. Both rows step from one to two to three columns at the same widths.
Affects: API reference
Prompt summary: On the API landing page, the Orchestration cards (Elastic Cloud) should be the same size as the Elasticsearch, Kibana and Logstash cards. Both rows should also be responsive, with one, two and three columns at certain widths. The cards should be smaller, so that almost all of them fit above the fold on the most common screen sizes (StatCounter desktop resolutions).
Why
The catalog renders every card of a group without featured cards as the compact card. Orchestration has no featured cards, so its cards come out smaller than the stack cards above them. The stack row also stays at one column until 1024px, then jumps to three, because each Serverless tag-on is placed by a fixed grid column and row.
What
Card size
Cards that are not attached under a parent use the full-size card. Only the Serverless tag-on is small.
Column steps
Every card grid uses one column, two columns from 640px and three columns from 1024px. A group with only two featured cards stays at two.
Tag-on placement
A featured card and its Serverless tag-on now share one list item. A list item with a tag-on spans two rows through a subgrid, so the primary cards of a row share one height and the tag-ons sit in the row below them. The tag-on stays attached under its parent at any column count. The fixed column and row placement, and the code behind it, are removed. The same rules are updated in both catalog stylesheets, and the design-system utilities gain the two-column step.
Fit above the fold
The full-size card is smaller: 16px and 20px padding, a 24px icon, a 17px title and a description of two lines. The grid gap is 16px. The classic hero is shorter. On the assembler build at 1440x900 all 11 cards end above the fold, where 8 did. Weighted by StatCounter's share of the eight most common desktop screen sizes, the cards above the fold go from 54% to 80%. The browser viewport is estimated as the screen height minus 130px.
Verify
mise run test mise run serveOpen
/api/and resize the window across 640px and 1024px.Check on the preview