[de-v5][DataGrid] Tweak script and styling#4504
Merged
Conversation
Collaborator
vnbaaij
commented
Feb 3, 2026
- Some small script and styling tweaks for the DataGrid
- Fix demo layout showing both text direction icons initially
|
✅ All tests passed successfully Details on your Workflow / Core Tests page. |
Summary - Unit Tests Code CoverageSummary
CoverageMicrosoft.FluentUI.AspNetCore.Components - 99.1%
|
dvoituron
approved these changes
Feb 3, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR makes script and styling tweaks to the DataGrid component, addressing layout issues and improving interaction handling.
Changes:
- Updated CSS styling for data grid cells, headers, and resize handles to improve spacing and visual alignment
- Fixed demo layout issue where both LTR and RTL text direction icons were showing initially by changing from attribute selectors to
:dir()pseudo-class - Enhanced pointer event handling for column resizing with additional event listeners and improved column width reset logic
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Core/Components/DataGrid/FluentDataGridCell.razor.css | Updated cell padding, added focus-visible styling, and adjusted header padding |
| src/Core/Components/DataGrid/FluentDataGrid.razor.ts | Added early returns after stopPropagation, new pointer event listeners, column change detection, and refactored reset logic |
| src/Core/Components/DataGrid/FluentDataGrid.razor.css | Increased resize handle height to 80% and width to 6px for better usability |
| examples/Demo/FluentUI.Demo.Client/wwwroot/app.css | Changed from [dir=rtl]/[dir=ltr] to :dir(rtl)/:dir(ltr) to fix icon display issue |
| examples/Demo/FluentUI.Demo.Client/Documentation/Components/DataGrid/Examples/DataGridVirtualize.razor | Wrapped buttons in FluentStack and changed indentation throughout |
| examples/Demo/FluentUI.Demo.Client/Documentation/Components/DataGrid/Examples/DataGridTypical.razor.css | Added margin-top to flag class for proper vertical alignment |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...emo/FluentUI.Demo.Client/Documentation/Components/DataGrid/Examples/DataGridVirtualize.razor
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.