Skip to content

Commit efdf2af

Browse files
authored
Remove Display Density setters from custom samples. Use style instead. (#799)
1 parent 8860faa commit efdf2af

File tree

11 files changed

+28
-6
lines changed

11 files changed

+28
-6
lines changed

samples/grids/grid/data-searching/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</igc-input>
3333
</div>
3434

35-
<igc-grid auto-generate="false" id="grid" name="grid" allow-filtering="true" display-density="compact" height="100%" width="100%">
35+
<igc-grid class="gridSize" auto-generate="false" id="grid" name="grid" allow-filtering="true" height="100%" width="100%">
3636
<igc-column field="IndustrySector" data-type="string" sortable="true"></igc-column>
3737
<igc-column field="IndustryGroup" data-type="string" sortable="true"></igc-column>
3838
<igc-column field="SectorType" data-type="string" sortable="true"></igc-column>
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
/* shared styles are loaded from: */
2-
/* https://static.infragistics.com/xplatform/css/samples */
2+
/* https://static.infragistics.com/xplatform/css/samples */
3+
4+
.gridSize {
5+
--ig-size: var(--ig-size-small);
6+
}

samples/grids/grid/data-searching/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import { IgcGridComponent } from 'igniteui-webcomponents-grids/grids';
66
import { defineComponents, IgcInputComponent, IgcChipComponent, IgcIconComponent, IgcIconButtonComponent, registerIconFromText } from 'igniteui-webcomponents';
77
import { MarketData } from './MarketData';
88

9+
import "./index.css";
10+
911
defineComponents(IgcInputComponent, IgcChipComponent, IgcIconComponent, IgcIconButtonComponent);
1012

1113
export class Sample {

samples/grids/grid/finjs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
</div>
4848
</div>
4949
<div class="container fill">
50-
<igc-grid row-selection="multiple" auto-generate="false" primary-key="id" display-density="cosy" hide-grouped-columns="true"
50+
<igc-grid class="gridSize" row-selection="multiple" auto-generate="false" primary-key="id" hide-grouped-columns="true"
5151
allow-filtering="true" filter-mode="excelStyleFilter" name="grid1" id="grid1">
5252
<igc-grid-toolbar id="toolbar">
5353
<igc-grid-toolbar-actions>

samples/grids/grid/finjs/src/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,8 @@
111111
.strongNegative2 > .igx-grid__td-text {
112112
border-inline-end: 4px solid rgb(255, 20, 75);
113113
padding-inline-end: 15px;
114+
}
115+
116+
.gridSize {
117+
--ig-size: var(--ig-size-medium);
114118
}

samples/grids/grid/keyboard-navigation-guide/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<div class="container fill">
2323
<div class="grid_wrapper">
24-
<igc-grid display-density="compact" primary-key="CustomerID" allow-filtering="true" allow-advanced-filtering="true" filter-mode="excelStyleFilter" auto-generate="false" column-selection="true" name="grid" id="grid" id="grid">
24+
<igc-grid class="gridSize" primary-key="CustomerID" allow-filtering="true" allow-advanced-filtering="true" filter-mode="excelStyleFilter" auto-generate="false" column-selection="true" name="grid" id="grid" id="grid">
2525
<igc-column-group header="Customer Information" collapsible="true">
2626
<igc-column field="CustomerName" header="Customer Name" visible-when-collapsed="true" has-summary="true" sortable="true" groupable="true" editable="true">
2727
</igc-column>

samples/grids/grid/keyboard-navigation-guide/src/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
/* shared styles are loaded from: */
22
/* https://static.infragistics.com/xplatform/css/samples */
33

4+
.gridSize {
5+
--ig-size: var(--ig-size-small);
6+
}
7+
48
.grid_wrapper {
59
width: 75%;
610
}

samples/grids/tree-grid/data-summaries-custom/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020

2121
<div class="container fill">
2222
<igc-tree-grid
23+
class="gridSize"
2324
height="620px"
2425
auto-generate="false"
2526
name="treeGrid"
2627
id="treeGrid"
27-
display-density="compact"
2828
primary-key="ID"
2929
foreign-key="ParentID">
3030
<igc-column
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
/* shared styles are loaded from: */
22
/* https://static.infragistics.com/xplatform/css/samples */
3+
4+
.gridSize {
5+
--ig-size: var(--ig-size-small);
6+
}

samples/grids/tree-grid/finjs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
</div>
4545
</div>
4646
<div class="container fill">
47-
<igc-tree-grid child-data-key="childDataKey" row-selection="multiple" auto-generate="false" primary-key="id" display-density="cosy" hide-grouped-columns="true"
47+
<igc-tree-grid class="gridSize" child-data-key="childDataKey" row-selection="multiple" auto-generate="false" primary-key="id" hide-grouped-columns="true"
4848
allow-filtering="true" filter-mode="excelStyleFilter" name="grid1" id="grid1">
4949
<igc-grid-toolbar id="toolbar">
5050
<igc-grid-toolbar-actions>

0 commit comments

Comments
 (0)