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)
Fri, Feb 14, 6:23 PM
Unknown Object (File)
Tue, Jan 21, 6:32 AM
Unknown Object (File)
Jan 16 2025, 12:15 AM
Unknown Object (File)
Jan 11 2025, 8:00 PM
Unknown Object (File)
Jan 9 2025, 1:58 PM
Unknown Object (File)
Jan 9 2025, 12:02 PM
Unknown Object (File)
Jan 8 2025, 2:52 AM
Unknown Object (File)
Dec 31 2024, 6:06 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
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.