Skip to content

Commit e6fe477

Browse files
committed
docs(validator): Simplify the styles for the basic sample of the validator service
1 parent 8739a5e commit e6fe477

2 files changed

Lines changed: 3 additions & 36 deletions

File tree

src/app/grid/grid-validator-service/grid-validator-service.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<div class="top-row">
22
<igx-switch [(ngModel)]="rowEdit">Row edit</igx-switch>
33
</div>
4-
<div class="grid__wrapper">
4+
<div class="grid-wrapper">
55
<igx-grid #grid1 [data]="data" [width]="'100%'" [height]="'480px'" [autoGenerate]="false" [batchEditing]="true"
66
[rowEditable]="rowEdit" [primaryKey]="'id'">
77
<igx-column field="Avatar" header="Photo" dataType="string" width="80" [editable]="false">
88
<ng-template igxCell let-cell="cell">
9-
<div class="cell__inner avatar-cell">
9+
<div>
1010
<igx-avatar [src]="cell.row.data.avatar" [roundShape]="true" size="small"></igx-avatar>
1111
</div>
1212
</ng-template>
Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,9 @@
1-
@use "../../../variables" as *;
2-
3-
$my-light-gray: #e3e3e3;
4-
$my-banner-palette: $purple-palette;
5-
$custom-grid: grid-theme(
6-
$palette: $purple-palette,
7-
);
8-
91
.top-row,
102
.grid-wrapper {
113
padding: 16px;
124
}
135

14-
.sample-wrapper {
6+
.grid-wrapper {
157
margin: 0 auto;
168
padding: 16px;
179
}
18-
19-
$banner-theme: banner-theme(
20-
$banner-background: $my-light-gray,
21-
$banner-message-color: color($my-banner-palette, "secondary", 600),
22-
);
23-
24-
$button-theme: button-theme(
25-
$palette: $purple-palette,
26-
);
27-
28-
$custom-checkbox: checkbox-theme(
29-
$palette: $my-banner-palette,
30-
);
31-
32-
.custom-buttons {
33-
@include button($button-theme);
34-
}
35-
36-
:host {
37-
::ng-deep {
38-
@include checkbox($custom-checkbox);
39-
@include grid($custom-grid);
40-
@include banner($banner-theme);
41-
}
42-
}

0 commit comments

Comments
 (0)