Skip to content

Commit

Permalink
Merge pull request #1963 from smeup/feat/mobile-kup-tab-bar-responsive
Browse files Browse the repository at this point in the history
Feat/mobile kup tab bar responsive
  • Loading branch information
lucafoscili authored Jun 27, 2024
2 parents 861aaeb + 3734362 commit 068d755
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/ketchup/src/components/kup-tab-bar/kup-tab-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,13 @@
line-height: 1;
z-index: 2;
color: var(--kup_tabbar_text_color);
min-width: 150px;
min-width: auto;
}

@media screen and (min-width: 678px) {
.tab__text-label {
min-width: 150px;
}
}
}

Expand Down
14 changes: 14 additions & 0 deletions packages/ketchup/src/tab-bar.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ <h4>Events testing</h4>
<kup-tab-bar id="event-tabbar"></kup-tab-bar>
<kup-tab-bar></kup-tab-bar>
<kup-tab-bar></kup-tab-bar>
<kup-tab-bar></kup-tab-bar>

<script>
let tabBar = document.getElementsByTagName('kup-tab-bar')[0];
Expand Down Expand Up @@ -120,6 +121,19 @@ <h4>Events testing</h4>
active: false,
},
];
let tabBar4 = document.getElementsByTagName('kup-tab-bar')[3];
tabBar4.data = [
{
id: '1',
value: 'Favorites',
active: true,
},
{
id: '2',
value: 'Alarm clock',
active: false,
},
];
</script></body
>
</html>

0 comments on commit 068d755

Please sign in to comment.