diff --git a/apps/app/ui-tests-app/tab-view/main-page.ts b/apps/app/ui-tests-app/tab-view/main-page.ts
index aca658d9c..70833eda4 100644
--- a/apps/app/ui-tests-app/tab-view/main-page.ts
+++ b/apps/app/ui-tests-app/tab-view/main-page.ts
@@ -23,5 +23,6 @@ export function loadExamples() {
examples.set("text-transform", "tab-view/text-transform");
examples.set("tab-view-bottom-position", "tab-view/tab-view-bottom-position");
examples.set("issue-5470", "tab-view/issue-5470");
+ examples.set("tab-view-tab-text-font-size", "tab-view/tab-view-tab-text-font-size");
return examples;
}
diff --git a/apps/app/ui-tests-app/tab-view/tab-view-tab-text-font-size.xml b/apps/app/ui-tests-app/tab-view/tab-view-tab-text-font-size.xml
new file mode 100644
index 000000000..e1f7d3992
--- /dev/null
+++ b/apps/app/ui-tests-app/tab-view/tab-view-tab-text-font-size.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tns-core-modules/ui/styling/style/style.d.ts b/tns-core-modules/ui/styling/style/style.d.ts
index 39b5ff6f3..403726c48 100644
--- a/tns-core-modules/ui/styling/style/style.d.ts
+++ b/tns-core-modules/ui/styling/style/style.d.ts
@@ -120,6 +120,7 @@ export class Style extends Observable {
public verticalAlignment: VerticalAlignment;
// TabView-specific props
+ public tabTextFontSize: number;
public tabTextColor: Color;
public tabBackgroundColor: Color;
public selectedTabTextColor: Color;
diff --git a/tns-core-modules/ui/styling/style/style.ts b/tns-core-modules/ui/styling/style/style.ts
index 9dc705841..62f3eefc7 100644
--- a/tns-core-modules/ui/styling/style/style.ts
+++ b/tns-core-modules/ui/styling/style/style.ts
@@ -93,6 +93,7 @@ export class Style extends Observable implements StyleDefinition {
public verticalAlignment: VerticalAlignment;
// TabView-specific props
+ public tabTextFontSize: number;
public tabTextColor: Color;
public tabBackgroundColor: Color;
public selectedTabTextColor: Color;
diff --git a/tns-core-modules/ui/tab-view/tab-view-common.ts b/tns-core-modules/ui/tab-view/tab-view-common.ts
index 062d19b15..b4d6429ca 100644
--- a/tns-core-modules/ui/tab-view/tab-view-common.ts
+++ b/tns-core-modules/ui/tab-view/tab-view-common.ts
@@ -103,6 +103,13 @@ export class TabViewBase extends View implements TabViewDefinition, AddChildFrom
this.style.androidSelectedTabHighlightColor = value;
}
+ get tabTextFontSize(): number {
+ return this.style.tabTextFontSize;
+ }
+ set tabTextFontSize(value: number) {
+ this.style.tabTextFontSize = value;
+ }
+
get tabTextColor(): Color {
return this.style.tabTextColor;
}
@@ -240,6 +247,9 @@ androidOffscreenTabLimitProperty.register(TabViewBase);
export const androidTabsPositionProperty = new Property({ name: "androidTabsPosition", defaultValue: "top" });
androidTabsPositionProperty.register(TabViewBase);
+export const tabTextFontSizeProperty = new CssProperty