Skip to content

Commit 49d67a1

Browse files
committed
fix: update code for @yandex-cloud/uikit@^2.0.0
1 parent 9c9f599 commit 49d67a1

File tree

48 files changed

+155
-168
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+155
-168
lines changed

src/components/AsideNavigation/Settings/Settings.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
&__heading {
3030
margin: 20px 20px 0;
3131

32-
font-size: var(--yc-text-body2-font-size);
32+
font-size: var(--yc-text-body-2-font-size);
3333
font-weight: 500;
34-
line-height: var(--yc-text-body2-line-height);
34+
line-height: var(--yc-text-body-2-line-height);
3535
}
3636

3737
&__search {
@@ -48,9 +48,9 @@
4848
&-heading {
4949
margin: 0;
5050

51-
font-size: var(--yc-text-body2-font-size);
51+
font-size: var(--yc-text-body-2-font-size);
5252
font-weight: 500;
53-
line-height: var(--yc-text-body2-line-height);
53+
line-height: var(--yc-text-body-2-line-height);
5454

5555
&_badge {
5656
position: relative;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.kv-breadcrumbs {
22
padding: 20px 0;
33

4-
font-size: var(--yc-text-body2-font-size);
4+
font-size: var(--yc-text-body-2-font-size);
55
}

src/components/Collapse/Collapse.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@
2020

2121
&__title_size {
2222
&_s {
23-
font-size: var(--yc-text-body-font-size);
24-
line-height: var(--yc-text-body-line-height);
23+
font-size: var(--yc-text-body-1-font-size);
24+
line-height: var(--yc-text-body-1-line-height);
2525
}
2626

2727
&_m {
28-
font-size: var(--yc-text-body2-font-size);
29-
line-height: var(--yc-text-body2-line-height);
28+
font-size: var(--yc-text-body-2-font-size);
29+
line-height: var(--yc-text-body-2-line-height);
3030
}
3131

3232
&_l {
33-
font-size: var(--yc-text-body3-font-size);
34-
line-height: var(--yc-text-body3-line-height);
33+
font-size: var(--yc-text-body-3-font-size);
34+
line-height: var(--yc-text-body-3-line-height);
3535
}
3636
}
3737

@@ -55,9 +55,9 @@
5555
}
5656

5757
&__empty-state-title {
58-
font-size: var(--yc-text-body-font-size);
58+
font-size: var(--yc-text-body-1-font-size);
5959
font-weight: normal;
60-
line-height: var(--yc-text-body-line-height);
60+
line-height: var(--yc-text-body-1-line-height);
6161

6262
opacity: 0.5;
6363
}

src/components/EmptyState/EmptyState.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,21 @@
4747
font-weight: 500;
4848

4949
&_size_s {
50-
font-size: var(--yc-text-lead-font-size);
51-
line-height: var(--yc-text-lead-line-height);
50+
font-size: var(--yc-text-subheader-3-font-size);
51+
line-height: var(--yc-text-subheader-3-line-height);
5252
}
5353

5454
&_size_m {
55-
font-size: var(--yc-text-title-font-size);
56-
line-height: var(--yc-text-title-line-height);
55+
font-size: var(--yc-text-header-2-font-size);
56+
line-height: var(--yc-text-header-2-line-height);
5757
}
5858
}
5959

6060
&__description {
6161
grid-area: description;
6262

63-
font-size: var(--yc-text-body2-font-size);
64-
line-height: var(--yc-text-body2-line-height);
63+
font-size: var(--yc-text-body-2-font-size);
64+
line-height: var(--yc-text-body-2-line-height);
6565
}
6666

6767
&__actions {

src/components/EntityStatus/EntityStatus.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
max-width: 100%;
66
height: 100%;
77

8-
font-size: var(--yc-text-body2-font-size);
9-
line-height: var(--yc-text-body2-line-height);
8+
font-size: var(--yc-text-body-2-font-size);
9+
line-height: var(--yc-text-body-2-line-height);
1010

1111
&__clipboard-button {
1212
display: none;
@@ -42,8 +42,8 @@
4242
&__label {
4343
margin-right: 2px;
4444

45-
font-size: var(--yc-text-body2-font-size);
46-
line-height: var(--yc-text-body2-line-height);
45+
font-size: var(--yc-text-body-2-font-size);
46+
line-height: var(--yc-text-body-2-line-height);
4747

4848
color: var(--yc-color-text-complementary);
4949
}
@@ -96,7 +96,7 @@
9696
}
9797

9898
&_size_m {
99-
font-size: var(--yc-text-body2-font-size);
100-
line-height: var(--yc-text-body2-line-height);
99+
font-size: var(--yc-text-body-2-font-size);
100+
line-height: var(--yc-text-body-2-line-height);
101101
}
102102
}

src/components/FullNodeViewer/FullNodeViewer.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
@import '../../styles/mixins.scss';
22

33
.full-node-viewer {
4-
font-size: var(--yc-text-body2-font-size);
5-
line-height: var(--yc-text-body2-line-height);
4+
font-size: var(--yc-text-body-2-font-size);
5+
line-height: var(--yc-text-body-2-line-height);
66

77
&__title {
88
margin: 0 20px 0 0;
99

10-
font-size: var(--yc-text-body2-font-size);
10+
font-size: var(--yc-text-body-2-font-size);
1111
font-weight: 600;
12-
line-height: var(--yc-text-body2-line-height);
12+
line-height: var(--yc-text-body-2-line-height);
1313
text-transform: uppercase;
1414
}
1515

@@ -50,7 +50,7 @@
5050
min-width: 100px;
5151
margin-right: 25px;
5252

53-
font-size: var(--yc-text-body2-font-size);
53+
font-size: var(--yc-text-body-2-font-size);
5454
line-height: 18px;
5555
white-space: nowrap;
5656

@@ -69,9 +69,9 @@
6969
&__section-title {
7070
margin: 15px 0 10px;
7171

72-
font-size: var(--yc-text-body2-font-size);
72+
font-size: var(--yc-text-body-2-font-size);
7373
font-weight: 600;
74-
line-height: var(--yc-text-body2-line-height);
74+
line-height: var(--yc-text-body-2-line-height);
7575
}
7676

7777
&__link {

src/components/GroupViewer/GroupViewer.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
&__label {
99
margin-right: 20px;
1010

11-
font-size: var(--yc-text-body-font-size);
11+
font-size: var(--yc-text-body-1-font-size);
1212

1313
color: var(--yc-color-text-complementary);
1414
}

src/components/InfoViewer/InfoViewer.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
.info-viewer {
2-
font-size: var(--yc-text-body2-font-size);
3-
line-height: var(--yc-text-body2-line-height);
2+
font-size: var(--yc-text-body-2-font-size);
3+
line-height: var(--yc-text-body-2-line-height);
44
&__title {
55
margin: 15px 0 10px;
66

7-
font-size: var(--yc-text-body2-font-size);
7+
font-size: var(--yc-text-body-2-font-size);
88
font-weight: 600;
9-
line-height: var(--yc-text-body2-line-height);
9+
line-height: var(--yc-text-body-2-line-height);
1010
}
1111

1212
&__items {

src/components/PDiskViewer/PDiskViewer.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
&__size {
77
margin-right: 24px;
88

9-
font-size: var(--yc-text-body2-font-size);
9+
font-size: var(--yc-text-body-2-font-size);
1010
line-height: 0;
1111

1212
color: var(--yc-color-text-complementary);

src/components/PoolUsage/PoolUsage.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.pool-usage {
2-
font-size: var(--yc-text-body2-font-size);
3-
line-height: var(--yc-text-body2-line-height);
2+
font-size: var(--yc-text-body-2-font-size);
3+
line-height: var(--yc-text-body-2-line-height);
44
&__info {
55
display: flex;
66
justify-content: space-between;
@@ -17,7 +17,7 @@
1717
}
1818

1919
&__threads {
20-
font-size: var(--yc-text-body-font-size);
20+
font-size: var(--yc-text-body-1-font-size);
2121

2222
color: var(--yc-color-text-hint);
2323

@@ -29,7 +29,7 @@
2929
&__percents {
3030
margin-right: 2px;
3131

32-
font-size: var(--yc-text-body-font-size);
32+
font-size: var(--yc-text-body-1-font-size);
3333

3434
color: var(--yc-color-text-primary);
3535
}
@@ -44,7 +44,7 @@
4444

4545
height: 6px;
4646

47-
font-size: var(--yc-text-body2-font-size);
47+
font-size: var(--yc-text-body-2-font-size);
4848

4949
border-radius: 4px;
5050
background-color: var(--yc-color-base-generic-accent);

0 commit comments

Comments
 (0)