Skip to content

Commit ce3af7d

Browse files
📱 - style: improve responsive design of Toolbar component
1 parent 9ff9814 commit ce3af7d

File tree

2 files changed

+17
-20
lines changed

2 files changed

+17
-20
lines changed

src/components/form/form/form.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,4 @@
1616
flex-direction: row;
1717
width: auto;
1818
}
19-
20-
.mykn-toolbar .mykn-button {
21-
justify-content: center !important;
22-
}
2319
}

src/components/toolbar/toolbar.scss

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
}
8181

8282
--typography-color-link: var(--typography-color-body);
83+
8384
&--variant-primary {
8485
--toolbar-color-text-primary: var(--typography-color-background);
8586
background-color: var(--page-color-primary);
@@ -227,22 +228,6 @@
227228
height: 100%;
228229
}
229230

230-
&#{$self}--align-start .mykn-a,
231-
&#{$self}--align-start .mykn-button,
232-
&#{$self}--align-start .mykn-dropdown {
233-
display: flex;
234-
justify-content: start;
235-
text-align: start;
236-
}
237-
238-
&#{$self}--align-end .mykn-a,
239-
&#{$self}--align-end .mykn-button,
240-
&#{$self}--align-end .mykn-dropdown {
241-
display: flex;
242-
justify-content: end;
243-
text-align: end;
244-
}
245-
246231
&#{$self}--align-center .mykn-a,
247232
&#{$self}--align-center .mykn-button,
248233
&#{$self}--align-center .mykn-dropdown,
@@ -279,6 +264,22 @@
279264
justify-content: space-between;
280265
text-align: center;
281266
}
267+
268+
&#{$self}--align-start .mykn-a,
269+
&#{$self}--align-start .mykn-button,
270+
&#{$self}--align-start .mykn-dropdown {
271+
display: flex;
272+
justify-content: start;
273+
text-align: start;
274+
}
275+
276+
&#{$self}--align-end .mykn-a,
277+
&#{$self}--align-end .mykn-button,
278+
&#{$self}--align-end .mykn-dropdown {
279+
display: flex;
280+
justify-content: end;
281+
text-align: end;
282+
}
282283
}
283284
}
284285
}

0 commit comments

Comments
 (0)