Page MenuHomePhabricator

[web] Changed edit modal overlay opacity
ClosedPublic

Authored by kuba on May 23 2023, 1:06 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 23, 8:06 PM
Unknown Object (File)
Sun, Dec 8, 6:46 PM
Unknown Object (File)
Sun, Dec 8, 6:46 PM
Unknown Object (File)
Thu, Dec 5, 2:28 AM
Unknown Object (File)
Thu, Dec 5, 2:28 AM
Unknown Object (File)
Mon, Dec 2, 9:36 AM
Unknown Object (File)
Nov 26 2024, 11:18 PM
Unknown Object (File)
Nov 26 2024, 11:01 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