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)
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
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
Unknown Object (File)
Oct 27 2024, 2:16 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
Branch
spoiler_web
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.