Skip to content

Commit b18ba71

Browse files
committed
feat(theming): add roundness sample
1 parent b31f89a commit b18ba71

File tree

5 files changed

+59
-0
lines changed

5 files changed

+59
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.chip1{
2+
--ig-radius-factor: 0;
3+
}
4+
5+
.chip2{
6+
--ig-radius-factor: 1;
7+
}
8+
9+
.chip-wrapper {
10+
text-align: center;
11+
}
12+
13+
.sample-container {
14+
display: flex;
15+
justify-content: center;
16+
gap: 5rem;
17+
padding-top: 30px;
18+
}
19+
20+
p{
21+
font-size: 17px;
22+
font-weight: bold;
23+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<div class="sample-container">
2+
<div class="chip-wrapper">
3+
<p>--ig-radius-factor: 0</p>
4+
<igx-chip class="chip1">
5+
<igx-icon igxPrefix>place</igx-icon>
6+
Country
7+
</igx-chip>
8+
</div>
9+
<div class="chip-wrapper">
10+
<p>--ig-radius-factor: 1</p>
11+
<igx-chip class="chip2">
12+
<igx-icon igxPrefix>location_city</igx-icon>
13+
City
14+
</igx-chip>
15+
</div>
16+
</div>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { Component } from '@angular/core';
2+
import { IgxChipComponent, IgxIconComponent, IgxPrefixDirective } from 'igniteui-angular';
3+
4+
5+
@Component({
6+
selector: 'app-chip-simple',
7+
styleUrls: ['./roundness-sample.component.css'],
8+
templateUrl: './roundness-sample.component.html',
9+
imports: [IgxChipComponent, IgxIconComponent, IgxPrefixDirective]
10+
})
11+
12+
export class RoundnessComponent {
13+
}

src/app/theming/theming-routes-data.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export const themingRoutesData = {
88
'shadows-sample-2': { displayName: 'Shadows sample 2', parentName: 'Shadows' },
99
// eslint-disable-next-line quote-props
1010
'density': { displayName: 'Display density sample', parentName: 'Themes' },
11+
'roundness': { displayName: 'Roundness', parentName: 'Themes' },
1112
'angular-sample': { displayName: 'Angular Material Theming', parentName: 'Themes' },
1213
'bootstrap-sample': { displayName: 'Bootstrap Theming', parentName: 'Themes' },
1314
'card-sample-shadow': { displayName: 'card-sample-shadow', parentName: 'Shadows' }

src/app/theming/theming.routes.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { AngularMaterialComponent } from './angular/angular-sample.component';
55
import { BootstrapComponent } from './bootstrap/bootstrap-sample.component';
66
import { DefaultThemeSampleComponent } from './default-theme-sample/default-theme-sample.component';
77
import { DisplayDensityComponent } from './display-density/display-density.component';
8+
import { RoundnessComponent } from './roundness/roundness-sample.component';
89
import { CardSampleShadowComponent} from './shadows/card-sample-shadow/card-sample-shadow';
910
import { ShadowsSampleComponent } from './shadows/shadows-sample-1/shadows-sample.component';
1011
import { ShadowsSample2Component } from './shadows/shadows-sample-2/shadows-sample-2.component';
@@ -32,6 +33,11 @@ export const ThemingRoutes: Routes = [
3233
data: themingRoutesData['density'],
3334
path: 'density'
3435
},
36+
{
37+
component: RoundnessComponent,
38+
data: themingRoutesData['roundness'],
39+
path: 'roundness'
40+
},
3541
{
3642
component: CardSampleShadowComponent,
3743
data: themingRoutesData['card-sample-shadow'],

0 commit comments

Comments
 (0)