Skip to content

Commit

Permalink
fix(tabs): stretching while applying mc-stretch-tab within mc-light-t…
Browse files Browse the repository at this point in the history
…ab (#146)
  • Loading branch information
tverskih authored and pimenovoleg committed Jun 25, 2019
1 parent 7b00549 commit 195c5c7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
16 changes: 13 additions & 3 deletions packages/mosaic-dev/tabs/template.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,32 @@
<div>
<mc-tab-group mc-light-tabs>
<h4>Default tabs</h4>
<mc-tab-group>
<mc-tab label="First">Content 1</mc-tab>
<mc-tab label="Second">Content 2</mc-tab>
<mc-tab disabled label="Third">Content 3</mc-tab>
<mc-tab label="4">Content 4</mc-tab>
<mc-tab label="5">Content 5</mc-tab>
</mc-tab-group>

<br><br><br>
<h4>Light tabs</h4>
<mc-tab-group mc-light-tabs>
<mc-tab label="First">Content 1</mc-tab>
<mc-tab label="Second">Content 2</mc-tab>
<mc-tab disabled label="Third">Content 3</mc-tab>
<mc-tab label="4">Content 4</mc-tab>
<mc-tab label="5">Content 5</mc-tab>
</mc-tab-group>

<mc-tab-group>
<h4>Light tabs + stretch tabs</h4>
<mc-tab-group mc-light-tabs mc-stretch-tabs>
<mc-tab label="First">Content 1</mc-tab>
<mc-tab label="Second">Content 2</mc-tab>
<mc-tab disabled label="Third">Content 3</mc-tab>
<mc-tab label="4">Content 4</mc-tab>
<mc-tab label="5">Content 5</mc-tab>
</mc-tab-group>


<h3>Navigation</h3>

<nav mc-tab-nav-bar mc-light-tabs mc-align-tabs-end>
Expand Down
2 changes: 1 addition & 1 deletion packages/mosaic/tabs/tab-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
}
}

.mc-tab-label {
.mc-tab-label, .mc-tab-light-label {
.mc-tab-group_stretch-labels & {
flex-basis: 0;
flex-grow: 1;
Expand Down

0 comments on commit 195c5c7

Please sign in to comment.