Skip to content

Commit 333086d

Browse files
committed
fix(ios): Corrected background color mismatch between Label and nested spans
1 parent 70e7248 commit 333086d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/ui/text-base/index.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,8 @@ export class TextBase extends TextBaseCommon {
394394
const fontScale = adjustMinMaxFontScale(span.style.fontScaleInternal, span);
395395
const font = new Font(span.style.fontFamily, span.style.fontSize, span.style.fontStyle, span.style.fontWeight, fontScale, span.style.fontVariationSettings);
396396
const iosFont = font.getUIFont(this.nativeTextViewProtected.font);
397+
const backgroundColor = span.style.backgroundColor;
397398

398-
const backgroundColor = <Color>(span.style.backgroundColor || (<FormattedString>span.parent).backgroundColor || (<TextBase>span.parent.parent).backgroundColor);
399399
return {
400400
text,
401401
iosFont,

0 commit comments

Comments
 (0)