Skip to content

feat(docs): add min-width, event propagation info to Datagrid docs - #1846

Open
franzheidl wants to merge 2 commits into
mainfrom
franz-uxdocs-datagrid-1357
Open

feat(docs): add min-width, event propagation info to Datagrid docs#1846
franzheidl wants to merge 2 commits into
mainfrom
franz-uxdocs-datagrid-1357

Conversation

@franzheidl

@franzheidl franzheidl commented Jul 28, 2026

Copy link
Copy Markdown
Member

Summary

Add info re necessity of stopping event propagation on Datagrid item elements, and setting min-width of DataGrid item cells.

Closes #1357

Signed-off-by: Franz Heidl <franz.heidl@sap.com>
Copilot AI review requested due to automatic review settings July 28, 2026 15:27
@changeset-bot

changeset-bot Bot commented Jul 28, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: a9cb99d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the DataGrid UX documentation to capture two practical implementation details that improve usability when rows are clickable and when the last column contains small interactive controls.

Changes:

  • Adds guidance to set a min-width on the last “actions” column to prevent collapse and improve interactability of small controls (e.g., overflow menus).
  • Clarifies that nested interactive elements inside clickable rows should stop click event propagation to avoid triggering the row-level action.

Comment thread docs/ux/datagrid.md Outdated
Comment thread docs/ux/datagrid.md Outdated
Signed-off-by: Franz Heidl <franz.heidl@sap.com>
Copilot AI review requested due to automatic review settings July 28, 2026 15:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (2)

docs/ux/datagrid.md:84

  • Use consistent term capitalization for the UI component name "Overflow Menu". This doc (and the UX glossary) uses title case for this component, but this new sentence uses lowercase "overflow menus"/"overflow menu".
- Action columns (edit, delete, overflow menus) belong at the far right. In order to avoid noise, use overflow menus even for single item menus rather than showing a button on each item straightaway. When the last column holds an overflow menu or other small interactive element, set a `min-width` on that column's cells to prevent the column from collapsing and making the element difficult to interact with.

docs/ux/datagrid.md:92

  • Use consistent term capitalization for the UI component name "Overflow Menu" (matches docs/ux/glossary.md and other sections of this doc).
When rows contain nested interactive elements (buttons, links, overflow menus), each of those elements must explicitly stop click event propagation — call `event.stopPropagation()` on the element's click handler. Without this, the row-level click handler fires unintentionally whenever the user interacts with any nested element.

@franzheidl
franzheidl marked this pull request as ready for review July 28, 2026 15:46
@franzheidl
franzheidl requested a review from a team as a code owner July 28, 2026 15:46
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.

[Task](docs): write and add DataGrid docs

3 participants