fix(tab-button): add a class to hide the tab when show is false

This commit is contained in:
Brandy Carney
2018-07-12 10:28:12 -04:00
parent db248ef381
commit eb9ed179da
3 changed files with 18 additions and 8 deletions

View File

@ -74,9 +74,9 @@ export class TabButton {
'role': 'tab',
'id': tab.btnId,
'aria-selected': selected,
'hidden': !tab.show,
class: {
...createColorClasses(this.color),
'tab-hidden': !tab.show,
'tab-selected': selected,
'has-label': hasLabel,
'has-icon': hasIcon,