Releases: braposo/react-responsive-picture
Releases · braposo/react-responsive-picture
v3.2.2
v3.2.1
v3.2.0
v3.1.1
v3.1.0
- Adds propType warning if
alt
prop isn't defined (#24 @CloudPower97) - Defines
sources
prop structure (#24 @CloudPower97)
v3.0.0
Breaking changes:
- Removes
css
prop fromPicture
andpictureCSS
prop fromFullsizePicture
component. Styling is now done exclusively throughclassName
prop. className
prop inFullsizePicture
is assigned to the innerPicture
component to keep API consistency between components. It was previously calledpictureClassName
.- New
wrapperClassName
prop to style wrapper component inFullsizePicture
. It was previously calledclassName
FullsizePicture
default behaviour now mimicsbackground-size: cover
behaviour for full-width images
Other changes:
- Update to README and CONTRIBUTING docs
- Adds examples to be used in Codesandbox
- Removes
glamorous
and addscxs
for styling - Updates all dependencies to latest versions
v2.1.0
v2.0.0
- Converts components to use
glamorous
- Accepts any valid prop for
Picture
andFullsizePicture
components (you can definealt
tags for example) - Breaking: Uses
css
prop to override styles usingglamorous
, which can now accept objects, arrays and strings for styling. Previousstyle
prop is now only for simple inline styles, like any other basic React component. - Breaking: Renames
imageClassName
andimageStyle
topictureCSS
so it's semantically more accurate and avoid confusion