Page MenuHomePhabricator

[web] Make spoiler components block link reveal / click until the spoiler is revealed
ClosedPublic

Authored by rohan on Nov 12 2022, 11:39 AM.
Tags
None
Referenced Files
F3356853: D5623.id18435.diff
Sat, Nov 23, 9:04 PM
F3356847: D5623.id18398.diff
Sat, Nov 23, 9:02 PM
F3356799: D5623.id18489.diff
Sat, Nov 23, 8:47 PM
F3356544: D5623.diff
Sat, Nov 23, 7:09 PM
F3356301: D5623.id18489.diff
Sat, Nov 23, 6:04 PM
Unknown Object (File)
Mon, Nov 18, 5:14 AM
Unknown Object (File)
Tue, Nov 12, 2:38 PM
Unknown Object (File)
Tue, Nov 12, 10:52 AM

Details

Summary

We prevent links from being visible / clickable until the spoiler is clicked and revealed.

Depends on D5617

Test Plan

Run yarn dev in keyserver and web with these new changes and confirm the links are not clickable until spoilers are revealed.

Diff Detail

Repository
rCOMM Comm
Branch
spoiler_web
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

To clarify – when you click the first time, it reveals the spoiler, but doesn't open the lik until you click a second time?

To clarify – when you click the first time, it reveals the spoiler, but doesn't open the lik until you click a second time?

Yeah exactly. This is the before behavior:

atul requested changes to this revision.Nov 14 2022, 5:16 PM

Super close! Just move the hex value to web/theme.css and this'll be good to land

web/markdown/markdown.css
92

Let's move this out to CSS variable in web/theme.css and consume here.

This revision now requires changes to proceed.Nov 14 2022, 5:16 PM
This revision is now accepted and ready to land.Nov 15 2022, 3:51 PM