Skip to content

Commit 8974cae

Browse files
committed
Enabling scroll in tab-bar
1 parent d7c0ad9 commit 8974cae

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,20 @@
2525

2626
// TODO(ROU-10853): replace this value with a layer token
2727
z-index: 10;
28+
29+
/*
30+
* In case there are more tab buttons than can fit in the tab bar, enable
31+
* horizontal scrolling.
32+
*/
33+
overflow: auto hidden;
34+
justify-content: unset;
35+
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%;
2842
}
2943

3044
// Tab Bar Expand

0 commit comments

Comments
 (0)