Page MenuHomePhabricator

[web] Add spoiler style to MarkdownSpoiler
ClosedPublic

Authored by rohan on Nov 10 2022, 9:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 3 2024, 5:46 PM
Unknown Object (File)
Mar 31 2024, 8:53 AM
Unknown Object (File)
Mar 31 2024, 8:48 AM
Unknown Object (File)
Mar 23 2024, 4:05 AM
Unknown Object (File)
Mar 4 2024, 10:51 AM
Unknown Object (File)
Mar 4 2024, 10:51 AM
Unknown Object (File)
Mar 4 2024, 10:51 AM
Unknown Object (File)
Mar 4 2024, 10:51 AM

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

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.