Skip to content

Commit 30130f0

Browse files
committed
fix(navigation): icon left par defaut
1 parent 8e22769 commit 30130f0

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

src/component/navigation/index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
////
55

66
@import '../link/index';
7+
@import '../button/index';
78

89
@import '../../core/index';

src/component/navigation/style/module/_default.scss

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@
7070
@include min-height(auto, lg);
7171
}
7272

73+
#{ns(nav__btn)} {
74+
@include icon(arrow-down-s-line, sm, after) {
75+
@include margin-left(2v);
76+
@include margin-right(0);
77+
transition: transform 0.3s;
78+
}
79+
}
80+
7381
@include respond-from(lg) {
7482
position: initial;
7583
@include before(none);
@@ -83,6 +91,7 @@
8391

8492
&__link,
8593
&__btn {
94+
@include nest-btn(sm, left, null, null, false);
8695
@include size(100%);
8796
@include padding(3v 4v);
8897
@include text-style(md);
@@ -118,12 +127,6 @@
118127
flex-direction: row;
119128
@include padding(4v 3v 4v 4v, lg);
120129

121-
@include icon(arrow-down-s-line, sm, after) {
122-
@include margin-left(2v);
123-
@include margin-right(0);
124-
transition: transform 0.3s;
125-
}
126-
127130
@include respond-from(lg) {
128131
justify-content: flex-start;
129132
}

0 commit comments

Comments
 (0)