diff --git a/packages/core/ui/text-base/index.d.ts b/packages/core/ui/text-base/index.d.ts index 8dde2ad28b..fdefb6b436 100644 --- a/packages/core/ui/text-base/index.d.ts +++ b/packages/core/ui/text-base/index.d.ts @@ -194,15 +194,15 @@ export const formattedTextProperty: Property; export const maxLinesProperty: InheritedCssProperty; export const textAlignmentProperty: InheritedCssProperty; export const textDecorationProperty: CssProperty; -export const textTransformProperty: CssProperty; -export const textShadowProperty: CssProperty; -export const textStrokeProperty: CssProperty; -export const whiteSpaceProperty: CssProperty; +export const textTransformProperty: InheritedCssProperty; +export const textShadowProperty: InheritedCssProperty; +export const textStrokeProperty: InheritedCssProperty; +export const whiteSpaceProperty: InheritedCssProperty; export const textOverflowProperty: CssProperty; -export const letterSpacingProperty: CssProperty; -export const lineHeightProperty: CssProperty; +export const letterSpacingProperty: InheritedCssProperty; +export const lineHeightProperty: InheritedCssProperty; -//Used by tab view +// Used by tab view export function getTransformedText(text: string, textTransform: CoreTypes.TextTransformType): string; export const resetSymbol: symbol; diff --git a/packages/core/ui/text-base/text-base-common.ts b/packages/core/ui/text-base/text-base-common.ts index a0ec13ca2e..437328b830 100644 --- a/packages/core/ui/text-base/text-base-common.ts +++ b/packages/core/ui/text-base/text-base-common.ts @@ -290,7 +290,7 @@ export const textAlignmentProperty = new InheritedCssProperty(makeValidator('initial', 'none', 'capitalize', 'uppercase', 'lowercase')); -export const textTransformProperty = new CssProperty({ +export const textTransformProperty = new InheritedCssProperty({ name: 'textTransform', cssName: 'text-transform', defaultValue: 'initial', @@ -298,7 +298,7 @@ export const textTransformProperty = new CssProperty({ +export const textShadowProperty = new InheritedCssProperty({ name: 'textShadow', cssName: 'text-shadow', affectsLayout: __APPLE__, @@ -308,7 +308,7 @@ export const textShadowProperty = new CssProperty({ +export const textStrokeProperty = new InheritedCssProperty({ name: 'textStroke', cssName: 'text-stroke', affectsLayout: __APPLE__, @@ -319,7 +319,7 @@ export const textStrokeProperty = new CssProperty(makeValidator('initial', 'normal', 'nowrap')); -export const whiteSpaceProperty = new CssProperty({ +export const whiteSpaceProperty = new InheritedCssProperty({ name: 'whiteSpace', cssName: 'white-space', defaultValue: 'initial',