Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Correction of CollectionView to work properly with selected item color #12651

Merged
merged 10 commits into from
Nov 1, 2020

Conversation

hartez
Copy link
Contributor

@hartez hartez commented Oct 28, 2020

NOTE: This was orginally #11604 from @ronymesquita. We had to re-create the PR due to some CI and merging issues.

Description of Change

The key idea is to resolve the problem of CollectionView with selected item color on Android and iOS.

Issues Resolved

API Changes

None

Platforms Affected

  • iOS
  • Android

Behavioral/Visual Changes

The platform will check if exists a Visual State with Selected and not use the default color. In this manner, the background color of the Visual State will not be overridden by Android. On iOS, the background color is cleaned when the Selected state exists.
The default behavior still works.

Before/After Screenshots

After (Android)

android

After (iOS)

ios

Testing Procedure

The test was manual.

PR Checklist

  • Targets the correct branch
  • Tests are passing (or failures are unrelated)

Copy link
Member

@rmarinho rmarinho left a comment

Choose a reason for hiding this comment

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

Test failing SelectionShouldUpdateBinding

@rmarinho rmarinho added blocker Issue blocks next stable release. Prioritize fixing and reviewing this issue. 5.0.0-pre4 labels Oct 30, 2020
}
}

bool IsUsingVSMForSelectionColor(View view)
Copy link
Contributor

Choose a reason for hiding this comment

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

This is is repeated on iOS and Android, could we maybe move it to an extension method?

@rmarinho rmarinho merged commit 6355a1d into 5.0.0 Nov 1, 2020
@rmarinho rmarinho deleted the fix-selection-color branch November 1, 2020 12:01
@samhouts samhouts added this to the 5.0.0 milestone Nov 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
5.0.0-pre4 a/collectionview blocker Issue blocks next stable release. Prioritize fixing and reviewing this issue. m/high impact ⬛ partner/cat 😻 t/bug 🐛
Projects
None yet
5 participants