Skip to content

Commit e59dbda

Browse files
committed
refactor(roundness): fix lint errors + add live-editing sample
1 parent 53246eb commit e59dbda

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

live-editing/configs/ThemingConfigGenerator.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
import {
2+
IgxCardComponent,
3+
IgxCardContentDirective,
4+
IgxCardHeaderComponent,
5+
IgxChipComponent,
6+
IgxIconComponent,
7+
IgxPrefixDirective,
8+
} from "igniteui-angular";
19
import {AppModuleConfig, Config, IConfigGenerator} from 'igniteui-live-editing'
210
import { BaseAppConfig } from './BaseConfig';;
311
export class ThemingConfigGenerator implements IConfigGenerator {
@@ -36,6 +44,12 @@ export class ThemingConfigGenerator implements IConfigGenerator {
3644
shortenComponentPathBy: '/theming/'
3745
}));
3846

47+
configs.push(new Config({
48+
component: 'RoundnessComponent',
49+
appConfig: BaseAppConfig,
50+
shortenComponentPathBy: '/theming/roundness/'
51+
}));
52+
3953
configs.push(new Config({
4054
component: 'AnimationsSampleComponent',
4155
appConfig: BaseAppConfig,

src/app/theming/roundness/roundness-sample.component.html

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

1414
<igx-card>
1515
<igx-card-header>
16-
<pre>--ig-radius-factor: 0;</pre>
16+
<pre>--ig-radius-factor: 1;</pre>
1717
</igx-card-header>
1818
<igx-card-content>
1919
<igx-chip class="round-chip">

src/app/theming/roundness/roundness-sample.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
IgxCardHeaderComponent,
66
IgxChipComponent,
77
IgxIconComponent,
8-
IgxPrefixDirective,
8+
IgxPrefixDirective
99
} from "igniteui-angular";
1010

1111
@Component({
@@ -18,7 +18,7 @@ import {
1818
IgxCardContentDirective,
1919
IgxChipComponent,
2020
IgxIconComponent,
21-
IgxPrefixDirective,
22-
],
21+
IgxPrefixDirective
22+
]
2323
})
2424
export class RoundnessComponent {}

0 commit comments

Comments
 (0)