Stackable
Stackable copied to clipboard
Hero Block - Not displaying responsively on different screen sizes
Describe the bug When resizing, on smaller screens, background image do not resize properly and get cropped inside columns.
To Reproduce Steps to reproduce the behavior:
- Add a new page
- Add a Hero Block
- Add a Background Image
- See error
Expected behavior Hero image should scale proportionally within the column.
Screenshots
The cropping of background image is the default behavior, which can be also observed in core/cover. To achieve scaling without cropping, we can explicitly set it using this custom CSS.
.stk-block-hero .stk--has-background-overlay {
background-size: contain;
background-repeat: no-repeat;
box-shadow: none;
}