guardian / facia-scala-client

Low level client for the Facia JSON API
Other
2 stars 1 forks source link

Add `SpecialReportAlt` to `CardStyle` #280

Closed DanielCliftonGuardian closed 1 year ago

DanielCliftonGuardian commented 2 years ago

What does this change?

Adds SpecialReportAlt to Cardstyle. We need this in order to be able to style the SpecialReportAlt cards in fronts rendered by frontend as it relies on CardStyle to decide the class of the card.

This PR is the 2nd in this series:

  1. content-api-scala-client: Adds SpecialReportAltTheme and SpecialReportAlt hashed tag to content-api-scala-client: https://github.com/guardian/content-api-scala-client/pull/371
  2. facia-scala-client: Adds SpecialReportAlt to CardStyle: https://github.com/guardian/facia-scala-client/pull/280 (current)
  3. frontend: Consumes the new clients and adds card styles for fronts rendered by frontend: https://github.com/guardian/frontend/pull/25602

How to test

Tested in frontend locally using the SNAPSHOT version.

Deployment