Page MenuHomePhabricator

[web] Changed edit modal overlay opacity
ClosedPublic

Authored by kuba on May 23 2023, 1:06 AM.
Tags
None
Referenced Files
F3376158: D7930.id26882.diff
Tue, Nov 26, 10:24 PM
Unknown Object (File)
Sat, Nov 23, 8:23 AM
Unknown Object (File)
Sat, Nov 23, 7:24 AM
Unknown Object (File)
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

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
Lint Not Applicable
Unit
Tests Not Applicable

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