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

Update Modal.js #24949

Closed
wants to merge 1 commit into from
Closed

Update Modal.js #24949

wants to merge 1 commit into from

Conversation

Norfeldt
Copy link

Change default background color (when transparent prop is set to false) from white to semitransparent black.

#18398 - #18398

Summary

Changelog

[CATEGORY] [TYPE] - Message

Test Plan

Change default background color (when `transparent` prop is set to `false`) from `white` to semitransparent black.
@facebook-github-bot
Copy link
Contributor

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

Copy link

@analysis-bot analysis-bot left a comment

Choose a reason for hiding this comment

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

Code analysis results:

  • eslint found some issues. Run yarn lint --fix to automatically fix problems.

@@ -220,7 +220,7 @@ class Modal extends React.Component<Props> {
}

const containerStyles = {
backgroundColor: this.props.transparent ? 'transparent' : 'white',
backgroundColor: this.props.transparent ? 'transparent' : 'rgba(0, 0, 0, 0.5)',

Choose a reason for hiding this comment

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

prettier/prettier: Replace ·?·'transparent' with ⏎········?·'transparent'⏎·······

@pull-bot
Copy link

Messages
📖

📋 Verify Changelog Format - A changelog entry has the following format: [CATEGORY] [TYPE] - Message.

CATEGORY may be:
  • General
  • iOS
  • Android
  • JavaScript
  • Internal (for changes that do not need to be called out in the release notes)

TYPE may be:

  • Added, for new features.
  • Changed, for changes in existing functionality.
  • Deprecated, for soon-to-be removed features.
  • Removed, for now removed features.
  • Fixed, for any bug fixes.
  • Security, in case of vulnerabilities.

MESSAGE may answer "what and why" on a feature level. Use this to briefly tell React Native users about notable changes.

Generated by 🚫 dangerJS against ce4dfc7

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 19, 2019
@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@cpojer
Copy link
Contributor

cpojer commented May 20, 2019

When the transparent prop is off, then the color used shouldn't be using transparency so I'm not sure whether the motivation for this change makes sense. If you'd like us to consider this, could you go into more detail about what prompted this change and what this looks like before/after on devices?

@Norfeldt Norfeldt closed this May 20, 2019
@Norfeldt Norfeldt deleted the patch-1 branch May 20, 2019 08:33
@Norfeldt
Copy link
Author

Norfeldt commented May 20, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Component: Modal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants