Skip to content

Commit e16104a

Browse files
committed
fix avatar typography
1 parent 8263909 commit e16104a

File tree

1 file changed

+14
-24
lines changed

1 file changed

+14
-24
lines changed

core/src/components/avatar/avatar.ionic.scss

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,15 @@
88
--padding-top: #{globals.$ion-space-0};
99
--padding-bottom: #{globals.$ion-space-0};
1010

11+
@include globals.typography(globals.$ion-heading-h6-medium);
12+
1113
display: flex;
1214

1315
align-items: center;
1416
justify-content: center;
1517

16-
background: globals.$ion-primitives-neutral-100;
17-
color: globals.$ion-primitives-neutral-800;
18-
19-
font-weight: globals.$ion-font-weight-medium;
20-
21-
line-height: globals.$ion-font-line-height-700;
18+
background: globals.$ion-bg-neutral-subtlest-default;
19+
color: globals.$ion-text-subtlest;
2220
}
2321

2422
:host(:not(.avatar-image)) {
@@ -33,38 +31,32 @@
3331
--padding-end: #{globals.$ion-space-050};
3432
--padding-start: #{globals.$ion-space-050};
3533

34+
@include globals.typography(globals.$ion-body-sm-medium);
35+
3636
width: globals.$ion-scale-400;
3737
height: globals.$ion-scale-400;
38-
39-
font-size: globals.$ion-font-size-300;
40-
41-
line-height: globals.$ion-font-line-height-500;
4238
}
4339

4440
/* Extra Small */
4541
:host(.avatar-xsmall) {
4642
--padding-end: #{globals.$ion-space-050};
4743
--padding-start: #{globals.$ion-space-050};
4844

45+
@include globals.typography(globals.$ion-body-sm-medium);
46+
4947
width: globals.$ion-scale-600;
5048
height: globals.$ion-scale-600;
51-
52-
font-size: globals.$ion-font-size-300;
53-
54-
line-height: globals.$ion-font-line-height-500;
5549
}
5650

5751
/* Small */
5852
:host(.avatar-small) {
5953
--padding-end: #{globals.$ion-space-150};
6054
--padding-start: #{globals.$ion-space-150};
6155

56+
@include globals.typography(globals.$ion-body-lg-medium);
57+
6258
width: globals.$ion-scale-800;
6359
height: globals.$ion-scale-800;
64-
65-
font-size: globals.$ion-font-size-400;
66-
67-
line-height: globals.$ion-font-line-height-600;
6860
}
6961

7062
/* Medium */
@@ -74,30 +66,28 @@
7466

7567
width: globals.$ion-scale-1000;
7668
height: globals.$ion-scale-1000;
77-
78-
font-size: globals.$ion-font-size-450;
7969
}
8070

8171
/* Large */
8272
:host(.avatar-large) {
8373
--padding-end: #{globals.$ion-space-250};
8474
--padding-start: #{globals.$ion-space-250};
8575

76+
@include globals.typography(globals.$ion-heading-h5-medium);
77+
8678
width: globals.$ion-scale-1200;
8779
height: globals.$ion-scale-1200;
88-
89-
font-size: globals.$ion-font-size-500;
9080
}
9181

9282
/* Extra Large */
9383
:host(.avatar-xlarge) {
9484
--padding-end: #{globals.$ion-space-300};
9585
--padding-start: #{globals.$ion-space-300};
9686

87+
@include globals.typography(globals.$ion-heading-h4-medium);
88+
9789
width: globals.$ion-scale-1400;
9890
height: globals.$ion-scale-1400;
99-
100-
font-size: globals.$ion-font-size-550;
10191
}
10292

10393
// Avatar Shapes

0 commit comments

Comments
 (0)