There is currently no straightforward way to override the background color of the presentation backdrop.
The code seems to have been designed to accommodate custom background colors, but it was missing logic that would prevent values set in theme.backdropStyle from being overridden by the default black color.
The prop that had implementation allowing it to override the default background color, backdropStyle, is accessible from the Deck props, but not present in the TypeScript types, so TypeScript users had to use a workaround to push it through.
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
[x] Bug fix (non-breaking change which fixes an issue)
Description
There is currently no straightforward way to override the background color of the presentation backdrop.
theme.backdropStyle
from being overridden by the default black color.backdropStyle
, is accessible from theDeck
props, but not present in the TypeScript types, so TypeScript users had to use a workaround to push it through.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