mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
fix(tabs): fix the tabs so the color property works on tab button
fixes #14758
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import { Build, Component, Element, Event, EventEmitter, Listen, Method, Prop, State } from '@stencil/core';
|
||||
import { Color, Config, NavOutlet, RouteID, RouteWrite, TabbarLayout, TabbarPlacement } from '../../interface';
|
||||
import { createColorClasses } from '../../utils/theme';
|
||||
|
||||
|
||||
@Component({
|
||||
@ -298,6 +299,12 @@ export class Tabs implements NavOutlet {
|
||||
return !!(selectedTab && selectedTab !== leavingTab && !this.transitioning);
|
||||
}
|
||||
|
||||
hostData() {
|
||||
return {
|
||||
class: createColorClasses(this.color)
|
||||
};
|
||||
}
|
||||
|
||||
render() {
|
||||
const dom = [
|
||||
<div class="tabs-inner">
|
||||
|
||||
Reference in New Issue
Block a user