Skip to content

docs: show how to top-align wrapped Grid cell content - #6183

Merged
vursen merged 5 commits into
mainfrom
docs/grid-combobox-dynamic-styling
Sep 28, 2026
Merged

vursen merged 5 commits into
mainfrom
docs/grid-combobox-dynamic-styling

Conversation

@totally-not-ai

@totally-not-ai totally-not-ai Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This adds a short tip to the Grid styling docs. By default, wrapped cell content is centered vertically. The tip shows how to align it to the top of the row with CSS instead.

What changed

  • In articles/components/grid/styling.adoc, under the Wrap Cell Content part, added one sentence and a CSS example. The example sets align-items: start on the body-cell part:
vaadin-grid::part(body-cell) {
  align-items: start;
}
  • This is a docs-only change and does not affect any existing code.

totally-not-ai Bot and others added 2 commits September 26, 2026 09:19
Add a Flow example of value-based cell styling with a column part name
generator and class names in a renderer, and describe how rows adapt
their height to content and how to align cell content to the top.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Preview Deployment

This PR has been deployed for preview.

URL: https://docs-preview-pr-6183.fly.dev

Changed pages

Added content is highlighted in green; removed content is marked in red on each page.

Built from 3c26a1f

totally-not-ai Bot added a commit to vaadin/cookbook that referenced this pull request Sep 26, 2026
These recipes are covered by the component and building-apps
documentation, either already or through the examples added in
vaadin/docs#6183, #6184, #6185, #6186 and #6187:

- Grid styling: dynamic cell/row background, cell styling, row height,
  editable cells, ComboBox item background and item spacing
- Grid columns and renderers: hyperlinks, images, sorting with renderers,
  locale-aware numbers, details table, column toggle, responsive columns,
  records, Map items with Binder
- Grid interaction: arrow-key selection, drag-and-drop reordering, drill
  down, lazy loading errors, CSV import and export
- TreeGrid: filtering, recursive selection, icons, file tree
- Forms: auto-applied converters, upload validation, leaving a dirty
  form, form tabs, editable labels, locale from cookie, lazy Details
- Styling and layout: progress bar color, resizable components, dialog
  slide animation, printing selectively, dialog shortcuts, weekend
  highlighting, split button bar, overflowing MenuBar

The CSV file shared with the "Download text area contents as a file"
recipe moves to that recipe's package.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread articles/components/grid/styling.adoc Outdated
…e docs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@totally-not-ai totally-not-ai Bot changed the title docs: add dynamic Grid cell styling and row height examples docs: describe Grid row height and top alignment of cell content Sep 28, 2026
Comment thread articles/components/grid/styling.adoc Outdated
totally-not-ai Bot and others added 2 commits September 28, 2026 14:51
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Move the tooltip sentence directly after the wrap example and drop the
row height sentence, which the Dynamic Height section already covers.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@vursen vursen changed the title docs: describe Grid row height and top alignment of cell content docs: describe top alignment of wrapped Grid cell content Sep 28, 2026
@totally-not-ai totally-not-ai Bot changed the title docs: describe top alignment of wrapped Grid cell content docs: show how to top-align wrapped Grid cell content Sep 28, 2026
@vursen
vursen marked this pull request as ready for review September 28, 2026 15:12
@vursen
vursen merged commit 529560e into main Sep 28, 2026
9 of 10 checks passed
@vursen
vursen deleted the docs/grid-combobox-dynamic-styling branch September 28, 2026 15:12
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.

1 participant