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 Card's backgroundColor not working #1279

Merged
merged 2 commits into from
Apr 29, 2021

Conversation

ethanshar
Copy link
Collaborator

Description

Fix issue with Card's backgroundColor prop not working

Changelog

Fix issue with Card's backgroundColor prop not working

@ethanshar ethanshar requested review from mendyEdri and removed request for Inbal-Tish April 28, 2021 07:46
@ethanshar ethanshar assigned mendyEdri and unassigned Inbal-Tish Apr 28, 2021
get blurBgStyle() {
const {enableBlur} = this.props;
get backgroundStyle() {
const {enableBlur, backgroundColor = Colors.white} = this.props;

if (Constants.isIOS && enableBlur) {
return {backgroundColor: Colors.rgba(Colors.white, 0.85)};
Copy link
Contributor

Choose a reason for hiding this comment

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

when the blur is enabled, aren't we supposed to pass the backgroundColor to rgba function as well?
return {backgroundColor: Colors.rgba(backgroundColor, 0.85)};

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Completely right! Fixed ✅

@mendyEdri mendyEdri merged commit 4accb01 into master Apr 29, 2021
@ethanshar ethanshar deleted the fix/Card_backgroundColor branch November 30, 2021 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants