Skip to content

Commit 03db320

Browse files
committed
refactor(demos): update badge sample
1 parent d4a90f4 commit 03db320

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

src/app/badge/badge.sample.scss

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
.wrapper {
44
display: grid;
5-
grid-template-columns: repeat(2, 1fr);
6-
gap: 48px;
7-
padding: 24px;
5+
gap: rem(48px);
6+
padding: rem(24px);
87
}
98

109
.badges {
@@ -14,19 +13,14 @@
1413
gap: 24px;
1514
}
1615

17-
.sample-title {
18-
margin: 16px 0 8px 0;
19-
font-size: 18px;
20-
font-weight: 600;
21-
}
22-
2316
.badge-examples {
2417
display: flex;
2518
flex-wrap: wrap;
26-
gap: 32px;
19+
gap: rem(32px);
2720
align-items: center;
28-
padding: 16px;
29-
background: color($color: 'surface', $variant: 700);
21+
padding: rem(16px);
22+
background: color($color: 'gray', $variant: 100);
23+
border-radius: rem(8px);
3024
}
3125

3226
.badge-item {
@@ -46,9 +40,15 @@
4640
align-items: center;
4741
position: relative;
4842

43+
igx-avatar {
44+
anchor-name: --avatar;
45+
}
46+
4947
igx-badge {
5048
position: absolute;
51-
top: -4px;
52-
right: -4px;
49+
position-anchor: --avatar;
50+
bottom: anchor(--avatar top);
51+
left: anchor(right);
52+
transform: translate(-75%, 75%);
5353
}
5454
}

src/styles/_app-layout.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@
8181

8282
&-title {
8383
@include type-style('h6');
84-
margin-bottom: 24px;
8584

8685
.light {
8786
font-weight: 400;

0 commit comments

Comments
 (0)