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)
Thu, Dec 19, 1:25 PM
Unknown Object (File)
Sun, Dec 15, 7:07 PM
Unknown Object (File)
Fri, Nov 29, 10:20 AM
Unknown Object (File)
Nov 23 2024, 9:04 PM
Unknown Object (File)
Nov 23 2024, 9:02 PM
Unknown Object (File)
Nov 23 2024, 8:47 PM
Unknown Object (File)
Nov 23 2024, 7:09 PM
Unknown Object (File)
Nov 23 2024, 6:04 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
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 ↗(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