Page MenuHomePhabricator

[web] Add spoiler style to MarkdownSpoiler
ClosedPublic

Authored by rohan on Nov 10 2022, 9:56 AM.
Tags
None
Referenced Files
F3391505: D5599.diff
Sat, Nov 30, 4:21 AM
Unknown Object (File)
Wed, Nov 27, 4:40 AM
Unknown Object (File)
Wed, Nov 27, 3:58 AM
Unknown Object (File)
Wed, Nov 27, 3:38 AM
Unknown Object (File)
Sun, Nov 24, 12:12 AM
Unknown Object (File)
Oct 27 2024, 2:20 PM
Unknown Object (File)
Oct 27 2024, 2:20 PM
Unknown Object (File)
Oct 27 2024, 2:20 PM

Details

Summary

We add a unique spoiler style (the same hex code as approved in D5373) to the MarkdownSpoiler component.

https://linear.app/comm/issue/ENG-2191/add-spoiler-style-to-markdowncss

Depends on D5593

Test Plan

The spoiler text enclosed in || ... || characters are correctly rendered with the new spoiler style visually and in the inspect element console.

Spoiler Style.png (1×1 px, 381 KB)

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Rebase on MarkdownSpoiler changes

Move spoiler styles below markdown anchor tags

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

Looks good, we just need to pull the hardcoded hex values out and move them to web/theme.css

web/markdown/markdown.css
80–84 ↗(On Diff #18394)

On web we try to avoid hardcoding hex values and instead create CSS variables in web/theme.css to consume throughout. This should be good to land once you pull out the constants to web/theme.css and use them here instead.

This revision now requires changes to proceed.Nov 14 2022, 5:06 PM

Use CSS Variables in theme.css

This revision is now accepted and ready to land.Nov 15 2022, 3:40 PM
This revision was automatically updated to reflect the committed changes.