Skip to content

Commit dbe0c39

Browse files
author
Juli Ovechkina
authored
fix(Navigation): logo and button specifity styles (#116)
* fix(Navigation): logo and button specifity styles * fix(Navigation): items with space
1 parent c7ecd65 commit dbe0c39

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

src/containers/PageConstructor/__stories__/data.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@
140140
"header": {
141141
"leftItems": [
142142
{
143-
"text": "Dropdown1",
143+
"text": "Dropdown 1",
144144
"type": "dropdown",
145145
"items": [
146146
{
147-
"text": "Lorem ipsum ",
147+
"text": "Lorem ipsum",
148148
"url": "https://example.com",
149149
"type": "link"
150150
},
@@ -188,7 +188,7 @@
188188
]
189189
},
190190
{
191-
"text": "Link1",
191+
"text": "Link with spaces",
192192
"url": "https://example.com",
193193
"icon": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/icon_3_light.svg"
194194
},

src/navigation/components/Header/Header.scss

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ $block: '.#{$ns}header';
3333
}
3434

3535
&__mobile-menu-button {
36-
@include mobile-tablet-only();
36+
@include add-specificity(&) {
37+
@include mobile-tablet-only();
38+
}
3739
}
3840

3941
&__navigation,
@@ -44,13 +46,15 @@ $block: '.#{$ns}header';
4446
}
4547

4648
&__navigation {
47-
position: relative;
48-
margin-right: $normalOffset;
49+
@include add-specificity(&) {
50+
position: relative;
51+
margin-right: $normalOffset;
4952

50-
flex: 1 0 0;
51-
justify-content: flex-start;
53+
flex: 1 0 0;
54+
justify-content: flex-start;
5255

53-
@include desktop-only();
56+
@include desktop-only();
57+
}
5458
}
5559

5660
&__right {

src/navigation/components/Logo/Logo.scss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ $block: '.#{$ns}logo';
77
display: flex;
88
align-items: center;
99

10-
font-weight: var(--yc-text-accent-font-weight);
11-
12-
@include heading4();
13-
1410
&__icon {
1511
display: flex;
1612
margin-right: $indentXXXS;
@@ -19,6 +15,8 @@ $block: '.#{$ns}logo';
1915
}
2016

2117
&__text {
18+
@include heading4();
19+
2220
white-space: nowrap;
2321
}
2422
}

src/navigation/components/NavigationItem/NavigationItem.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ $block: '.#{$ns}navigation-item';
88

99
display: flex;
1010
align-items: center;
11+
white-space: nowrap;
1112

1213
&_type_link {
1314
@include navigation-item();

0 commit comments

Comments
 (0)