-
Notifications
You must be signed in to change notification settings - Fork 970
Remove darkening for all non-modal dialogs #9034
Conversation
If 'isClickDismiss' is specified to a Dialog, its background color will be transparent. Otherwise it will be gray. Fix #3653 Auditors: Test Plan 1: 1. Open http://browserspy.dk/password.php 2. Click "password-ok.php" 3. Make sure darkening effect does not occur 4. Click the outside of the dialog 5. Make sure the dialog is closed Test Plan 2: 1. Disable widevine 2. Open netflix.com 3. Make sure widevine dialog with the dark background appears 4. Click the outside of the dialog 5. Make sure the dialog is not closed
@@ -242,7 +242,7 @@ class BraveryPanel extends ImmutableComponent { | |||
}) | |||
const compactBraveryPanel = getSetting(settings.COMPACT_BRAVERY_PANEL) | |||
|
|||
return <Dialog onHide={this.props.onHide} testId='braveryPanelContainer' isClickDismiss> | |||
return <Dialog onHide={this.props.onHide} testId='braveryPanelContainer' isClickDismiss isBraveryPanel> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small: let's place isClickDismiss
, isBraveryPanel
and other props that are true
by default in the beginning of component's props. No need to do this now since this component is small enough but please do for future changes. that helps readability and even more for us that do front-end a lot.
I'm going to update our styles doc soon with that info btw
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this commit will be reverted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++
@cezaraugusto sorry I should have removed the last commit per @bradleyrichter (#3653 (comment)) ... I'll push a fix soon. |
If 'isClickDismiss' is specified to a Dialog, its background color will be transparent. Otherwise it will be gray.
Fix #3653
Auditors:
Test Plan 1:
Test Plan 2:
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist:
Tests