Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with mixed border widths on Fabric #11561

Merged
merged 2 commits into from
May 5, 2023

Conversation

chrisglein
Copy link
Member

@chrisglein chrisglein commented May 4, 2023

Description

In Fabric if you had specified a border on one side but not varying colors, it would not apply the border.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Why

Resolves #11549

What

Check not just for non-uniform colors, but also for non-uniform sizes.

Screenshots

Before After Paper
image image image

Testing

Modified pages in RNTester to cause it to repro (existing examples were either too plain or too fancy - none specifically had the repro of "set a single border other than the left border").
Also patched into an app and validated it there.

Microsoft Reviewers: Open in CodeFlow

chrisglein added 2 commits May 4, 2023 14:47
They were checking if the color was variable per side but assuming width wouldn't be.
Fixes microsoft#11549
@chrisglein chrisglein marked this pull request as ready for review May 5, 2023 00:13
@chrisglein chrisglein requested a review from a team as a code owner May 5, 2023 00:13
@chrisglein chrisglein changed the title Mixed borders Fix issue with mixed border widths on Fabric May 5, 2023
chrisglein added a commit to chrisglein/artificial-chat that referenced this pull request May 5, 2023
@chrisglein chrisglein added the AutoMerge Causes a PR to be automatically merged once all requirements are passed (label drives bot activity) label May 5, 2023
@acoates-ms acoates-ms merged commit f8923be into microsoft:main May 5, 2023
@chrisglein chrisglein deleted the mixedBorders branch May 10, 2023 17:10
@jonthysell jonthysell added the New Architecture Broad category for issues that apply to the RN "new" architecture of Turbo Modules + Fabric label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Borders and Brushes Area: Fabric Support Facebook Fabric AutoMerge Causes a PR to be automatically merged once all requirements are passed (label drives bot activity) New Architecture Broad category for issues that apply to the RN "new" architecture of Turbo Modules + Fabric
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Setting a single border (e.g. borderBottomWidth) in Fabric doesn't work
3 participants