Skip to content

Commit

Permalink
[Fabric] Text renders borders twice (microsoft#13445)
Browse files Browse the repository at this point in the history
* [Fabric] Text renders borders twice

* Change files

* Add fabric test for text borders

* snapshot updates

* snapshots
  • Loading branch information
acoates-ms committed Jul 16, 2024
1 parent 399075c commit 9782c63
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "[Fabric] Text renders borders twice",
"packageName": "react-native-windows",
"email": "30809111+acoates-ms@users.noreply.github.com",
"dependentChangeType": "patch"
}
1 change: 1 addition & 0 deletions vnext/src-win/Libraries/Text/Text.windows.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ const Text: React.AbstractComponent<
} else {
let styleProps: ViewStyleProp = (restProps.style: any);
if (
global.RN$Bridgeless !== true && // [Windows] Fabric text handles borders, but on paper we need to wrap it in an extra view
styleProps &&
styleProps.borderColor &&
(styleProps.borderWidth ||
Expand Down

0 comments on commit 9782c63

Please # to comment.