Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions packages/react-native/Libraries/Text/Text.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,17 @@ const Text: component(
// $FlowFixMe[incompatible-type]
_style = [_style, overrides];
}

// [macOS
// For some reason, on macOS, Setting backgroundColor without borderRadius on Text will
// cause the color to spill pass the frame of the view. We can solve this by setting a dummy
// value for borderRadius.
if (Platform.OS === 'macos') {
if ('backgroundColor' in _style && !('borderRadius' in _style)) {
_style.borderRadius = 0.001;
Comment thread
Saadnajmi marked this conversation as resolved.
Outdated
}
}
// macOS]
}

const _nativeID = id ?? nativeID;
Expand Down