Skip to content

fix(grid): Make sure border does not appear when new theme is loaded runtime.#17029

Open
MayaKirova wants to merge 6 commits intomasterfrom
mkirova/fix-3903
Open

fix(grid): Make sure border does not appear when new theme is loaded runtime.#17029
MayaKirova wants to merge 6 commits intomasterfrom
mkirova/fix-3903

Conversation

@MayaKirova
Copy link
Copy Markdown
Contributor

Closes IgniteUI/igniteui-angular-samples#3903

Additional information (check all that apply):

  • Bug fix
  • New functionality
  • Documentation
  • Demos
  • CI/CD

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them

@MayaKirova MayaKirova changed the title fix(grid): Exclude border from rowHeight calc. fix(grid): Make sure border does not appear when new theme is loaded runtime. Mar 11, 2026
@dkamburov dkamburov requested a review from skrustev April 2, 2026 15:47
Copilot AI review requested due to automatic review settings April 2, 2026 15:52
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 addresses a grid cell-merging visual regression where a border can reappear after a theme stylesheet is dynamically loaded at runtime (per igniteui-angular-samples issue #3903). It also adds a sample-level runtime theme toggle to reproduce/validate the fix.

Changes:

  • Ensures merged-row bottom border stays removed even when a new theme stylesheet is loaded later (SCSS change).
  • Removes a repaint-related recalcUpdateSizes() call from row height calculation logic in IgxRowDirective.
  • Adds a “Load/Unload Theme CSS” toggle in the grid cell merging sample and updates build assets to ship the sample theme CSS.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/app/grid-cellMerging/grid-cellMerging.component.ts Adds runtime theme toggling via dynamic <link rel="stylesheet"> injection and a signal to reflect loaded state.
src/app/grid-cellMerging/grid-cellMerging.component.html Adds a button to load/unload the theme CSS at runtime for verification.
projects/igniteui-angular/grids/core/src/row.directive.ts Removes a conditional call that forced virtual scroll size recalculation when _cdrRequests is set.
projects/igniteui-angular/core/src/core/styles/components/grid/_grid-theme.scss Makes the merged-row border removal more resilient to runtime theme loads by adding !important.
angular.json Copies src/app/grid-cellMerging/theme.css into the built app assets so it can be loaded dynamically.

@dkamburov dkamburov added ✅ status: verified Applies to PRs that have passed manual verification and removed ❌ status: awaiting-test PRs awaiting manual verification labels Apr 2, 2026
@MayaKirova MayaKirova added ❌ status: awaiting-test PRs awaiting manual verification and removed ✅ status: verified Applies to PRs that have passed manual verification labels Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Grid rows expand endlessly when theme is changed in cell merge sample

5 participants