Skip to content

feat(DataGrid): Add styles to sticky columns - #125

Merged
a11delavar merged 3 commits into
mainfrom
data-grid-sticky-styles
Dec 23, 2025
Merged

a11delavar merged 3 commits into
mainfrom
data-grid-sticky-styles

Conversation

@a11delavar

Copy link
Copy Markdown
Collaborator

No description provided.

@a11delavar a11delavar self-assigned this Dec 17, 2025
@a11delavar
a11delavar requested a review from Copilot December 17, 2025 22:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR adds visual styling to sticky columns in the DataGrid component, specifically applying borders and shadows to columns at the sticky edges to visually distinguish them from scrollable content.

Key Changes:

  • Added stickyEdge getter logic to determine which sticky columns are at the edge of their sticky group
  • Applied border and shadow styles to sticky edge columns using CSS selectors
  • Added comprehensive test coverage for the stickyEdge logic

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
packages/DataGrid/DataGridColumn.ts Implements stickyEdge getter to identify sticky columns at group boundaries
packages/DataGrid/DataGridColumnHeader.ts Applies CSS styles and data attributes for sticky edge columns in header cells
packages/DataGrid/DataGridCell.ts Applies CSS styles and data attributes for sticky edge columns in data cells
packages/DataGrid/DataGridColumn.test.ts Adds unit tests covering all scenarios for the stickyEdge getter logic

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/DataGrid/DataGridColumn.ts
@a11delavar
a11delavar merged commit 598da4a into main Dec 23, 2025
3 checks passed
@a11delavar
a11delavar deleted the data-grid-sticky-styles branch December 23, 2025 16:59
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