FormidableLabs / spectacle

A React-based library for creating sleek presentations using JSX syntax that gives you the ability to live demo your code.
https://commerce.nearform.com/open-source/spectacle/
MIT License
9.77k stars 693 forks source link

Fix: theme.backdropStyle overrides #1231

Closed fritz-c closed 2 years ago

fritz-c commented 2 years ago

Description

There is currently no straightforward way to override the background color of the presentation backdrop.

My judgement was that there was no need to have multiple ways to accomplish the same outcome with the styling props, as it complicates the implementation and the API. I ultimately kept the current behavior the same, except for the bug that causes theme.backdropStyle.background[Color] to be ignored, but marked the excess props (backdropStyle, suppressBackdropFallback, theme.suppressBackdropFallback) as deprecated in the TypeScript types, to be removed in the next major release.

Fixes #1051

Type of Change

How Has This Been Tested?

New unit tests