Closed JeffGreiner-eaton closed 4 months ago
Results using backgroundImage={BackgroundImage}
loads image but we lose styling and if used like this backgroundImage={require('../../../assets/farm.jpg')}
the image does not load
@JeffGreiner-eaton @shubham-eaton
This will fix the background image overflow issue:
The HeaderBackgroundImage component sets the background image width to the deviceWidth
, which in dev docs is too wide because we're only showing it in the small window on the screen. Overriding this width property will make it fill properly.
Fixes BLUI-5794.
Changes proposed in this Pull Request:
Screenshots / Screen Recording (if applicable)
To Test:
-
Any specific feedback you are looking for?
export const HeaderWithBackgroundExample = (): JSX.Element => (