Page MenuHomePhabricator

[web] Changed edit modal overlay opacity
ClosedPublic

Authored by kuba on May 23 2023, 1:06 AM.
Tags
None
Referenced Files
F3351905: D7930.diff
Sat, Nov 23, 3:59 AM
Unknown Object (File)
Thu, Nov 7, 10:56 AM
Unknown Object (File)
Thu, Nov 7, 10:56 AM
Unknown Object (File)
Tue, Nov 5, 9:05 AM
Unknown Object (File)
Tue, Nov 5, 9:05 AM
Unknown Object (File)
Wed, Oct 30, 12:23 PM
Unknown Object (File)
Wed, Oct 30, 12:23 PM
Unknown Object (File)
Wed, Oct 30, 12:23 PM

Details

Summary
Test Plan

Checked if new opacity is applied in edit mode. Checked if it is not applied in other modals.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Looks like @ted suggested using two different opacities for modals here. My first instinct would be to just have a single opacity, but he's on vacation so we can just proceed with this approach for now

lib/components/modal-overlay.react.js
59 ↗(On Diff #26855)

This should be memoized. By passing in this new object every time, you've actually made all of the memoization above completely useless (memoization of onBackgroundMouseDown, onBackgroundMouseUp, and onKeyDown is now useless)

Can you remove the color from modal-overlay.css and set the default in ModalOverlay? I feel this will be more readable.

Moved default background color

This revision is now accepted and ready to land.May 23 2023, 7:53 AM
lib/components/modal-overlay.react.js
59 ↗(On Diff #26889)

Shorthand