Skip to content

Commit 4ad7506

Browse files
authored
Dimming Overlay - background change (#2554)
1 parent 22b951e commit 4ad7506

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

demo/src/screens/componentScreens/HintsScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export default class HintsScreen extends Component<HintScreenProps> {
170170
// borderRadius={BorderRadiuses.br40}
171171
// edgeMargins={30}
172172
onBackgroundPress={useBackdrop && !useTargetFrame ? this.toggleHint : undefined}
173-
backdropColor={Colors.rgba(Colors.black, 0.5)}
173+
backdropColor={Colors.rgba(Colors.$backgroundInverted, 0.3)}
174174
customContent={
175175
showCustomContent
176176
? this.renderCustomContent()

demo/src/screens/incubatorScreens/PanViewScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ interface Item {
2121
label: string;
2222
}
2323

24-
const OVERLAY_BACKGROUND_COLOR = Colors.rgba(Colors.black, 0.5);
24+
const OVERLAY_BACKGROUND_COLOR = Colors.rgba(Colors.$backgroundInverted, 0.3);
2525
const colors: Item[] = [
2626
{value: Colors.red10, label: 'Red10'},
2727
{value: Colors.red30, label: 'Red30'},

src/components/dialog/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ interface DialogState {
9393
fadeOut?: boolean;
9494
}
9595

96-
const DEFAULT_OVERLAY_BACKGROUND_COLOR = Colors.rgba(Colors.black, 0.5);
96+
const DEFAULT_OVERLAY_BACKGROUND_COLOR = Colors.rgba(Colors.$backgroundInverted, 0.3);
9797

9898
/**
9999
* @description: Dialog component for displaying custom content inside a popup dialog

src/incubator/Dialog/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import DialogHeader from './DialogHeader';
2727
import {DialogProps, DialogDirections, DialogDirectionsEnum, DialogHeaderProps} from './types';
2828
export {DialogProps, DialogDirections, DialogDirectionsEnum, DialogHeaderProps};
2929

30-
const DEFAULT_OVERLAY_BACKGROUND_COLOR = Colors.rgba(Colors.black, 0.5);
30+
const DEFAULT_OVERLAY_BACKGROUND_COLOR = Colors.rgba(Colors.$backgroundInverted, 0.3);
3131
const THRESHOLD_VELOCITY = 750;
3232

3333
export interface DialogStatics {

0 commit comments

Comments
 (0)