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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CM-1237] Tag border colour issue fixed. #17

Merged
merged 4 commits into from Mar 15, 2023
Merged

Conversation

devyml
Copy link
Contributor

@devyml devyml commented Mar 15, 2023

Introduction

Tag border does not update when colour mode changes.

Purpose

Tag border does not update when colour mode changes.

Scope

Border colour updated once the appearance changed.

馃摫 Screenshots

tag dark

tag light

馃搱 Coverage

Code

Screenshot 2023-03-15 at 12 05 55 PM

Documentation

Screenshot 2023-03-15 at 12 06 59 PM

@devyml devyml requested a review from mpospese March 15, 2023 06:43
@devyml devyml self-assigned this Mar 15, 2023
@devyml devyml added the bug Something isn't working label Mar 15, 2023
@devyml devyml requested a review from karthikyml March 15, 2023 06:44
Copy link
Contributor

@mpospese mpospese left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks great, but I'm not sure about that test. I'd actually expect the colors to be different. I think the outcome depends on whether simulator is in dark or light mode, which means flaky test. I think you need to specify a color you know changes (.label), explicitly set the mode to .light then fetch lightBorderColor, then explicitly set mode to .dark and then fetch darkBorderColor. Assert the two CGColor's are different.

@devyml devyml requested a review from mpospese March 15, 2023 08:43
@devyml devyml merged commit bbb3aca into main Mar 15, 2023
1 check passed
@devyml devyml deleted the bugfix/CM-1237-borderColor branch March 15, 2023 10:43
@mpospese mpospese linked an issue Mar 15, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

Tag border does not update when color mode changes
2 participants