Skip to content

Commit f7c3ca4

Browse files
committed
Stylelint fixes
1 parent 558d09f commit f7c3ca4

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

core/src/components/tab-bar/tab-bar.ionic.scss

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,18 @@
99
--color: #{globals.$tabbar-ionic-color};
1010
--color-selected: #{globals.$tabbar-ionic-color-selected};
1111

12+
/*
13+
* In case there's scrolling, justify the content to the start.
14+
*/
15+
justify-content: unset;
16+
17+
/*
18+
* Ensure the tab bar does not grow larger than the viewport width.
19+
* Useful for when the tab buttons have large labels, allowing the space
20+
* to be evenly divided among the buttons.
21+
*/
22+
max-width: 100%;
23+
1224
/**
1325
* Tab bar has a box sizing of content-box to ensure the padding
1426
* is not included in the height. This is important for the
@@ -23,22 +35,14 @@
2335

2436
box-shadow: #{globals.$ion-elevation-2};
2537

26-
// TODO(ROU-10853): replace this value with a layer token
27-
z-index: 10;
28-
2938
/*
3039
* In case there are more tab buttons than can fit in the tab bar, enable
3140
* horizontal scrolling.
3241
*/
3342
overflow: auto hidden;
34-
justify-content: unset;
3543

36-
/*
37-
* Ensure the tab bar does not grow larger than the viewport width.
38-
* Useful for when the tab buttons have large labels, allowing the space
39-
* to be evenly divided among the buttons.
40-
*/
41-
max-width: 100%;
44+
// TODO(ROU-10853): replace this value with a layer token
45+
z-index: 10;
4246
}
4347

4448
// Tab Bar Expand

core/src/components/tab-button/tab-button.ionic.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212

1313
position: relative;
1414

15-
align-content: center;
16-
1715
flex: 1;
1816

19-
min-height: globals.$ion-scale-1200;
20-
max-height: globals.$ion-scale-1800;
17+
align-content: center;
2118

2219
min-width: globals.$ion-scale-1200;
20+
21+
min-height: globals.$ion-scale-1200;
22+
max-height: globals.$ion-scale-1800;
2323
}
2424

2525
// Tab Button: Native

0 commit comments

Comments
 (0)