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
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
Unknown Object (File)
Sun, Oct 27, 2:16 PM
Unknown Object (File)
Oct 15 2024, 6:35 PM
Unknown Object (File)
Sep 30 2024, 2:43 AM
Unknown Object (File)
Sep 27 2024, 7:22 PM
Unknown Object (File)
Sep 27 2024, 7:22 PM

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

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 ↗(On Diff #18398)

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