Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(grid): Remove deprecated usage of display density #14163

Merged
merged 46 commits into from
May 28, 2024

Conversation

mddragnev
Copy link
Member

@mddragnev mddragnev commented Apr 24, 2024

Closes #14015
Updated the update guide in the docfx: IgniteUI/igniteui-docfx#5807

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

@mddragnev mddragnev changed the title Mdragnev/refactor density refactor(grid): Remove deprecated usage of display density Apr 24, 2024
@mddragnev mddragnev marked this pull request as ready for review May 8, 2024 14:05
@@ -435,7 +392,7 @@ export class IgxGridExcelStyleFilteringComponent extends BaseFilteringComponent
* @hidden @internal
*/
public hide() {
this._originalDisplay = document.defaultView.getComputedStyle(this.element.nativeElement).display;
this._originalDisplay = this.computedStyles.display;
this.element.nativeElement.style.display = 'none';
Copy link
Member

Choose a reason for hiding this comment

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

👀
/* ignore this one, just baffled by why on earth is that doing */

projects/igniteui-angular/src/lib/core/utils.ts Outdated Show resolved Hide resolved
src/app/grid-auto-size/grid-auto-size.sample.ts Outdated Show resolved Hide resolved
@@ -1,5 +1,5 @@
<div class="wrapper">
<igx-grid #grid1 [data]="data" [width]="'100%'" [height]="'800px'" displayDensity="compact" [rowSelection]="'multiple'" >
<igx-grid #grid1 [data]="data" [width]="'100%'" [height]="'800px'" [style.--ig-size]="1" [rowSelection]="'multiple'" >
Copy link
Member

Choose a reason for hiding this comment

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

PS: Those static values can just be moved to styles instead.

damyanpetev
damyanpetev previously approved these changes May 21, 2024
Copy link
Member

@damyanpetev damyanpetev left a comment

Choose a reason for hiding this comment

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

Not sure if the styling still needs more discussing and the dev demos can be cleaned up some more even separately, the rest LGTM.

@dkamburov dkamburov merged commit 78eef0c into master May 28, 2024
6 checks passed
@dkamburov dkamburov deleted the mdragnev/refactor-density branch May 28, 2024 12:47
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: Remove deprecated usage of displayDensity
7 participants