Skip to content

Commit

Permalink
fix(Item.Image): Add ui class to wrapped Image to enable size propert…
Browse files Browse the repository at this point in the history
…y to work

* Resolves Semantic-Org#746
* Reverses an explicit test for ui=false, so needs review.
* Renders similar to the example at http://semantic-ui.com/views/item.html#image
* Images now render left aligned and sized.
  • Loading branch information
clemensw committed Oct 25, 2016
1 parent ec2081a commit 32053f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/views/Item/ItemImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Image from '../../elements/Image'
* An item can contain an image
**/
function ItemImage(props) {
return <Image {...props} ui={false} wrapped />
return <Image {...props} ui={true} wrapped />
}

ItemImage._meta = {
Expand Down
2 changes: 1 addition & 1 deletion test/specs/views/Item/ItemImage-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ describe('ItemImage', () => {
const wrapper = shallow(<ItemImage />)

wrapper.should.have.prop('wrapped', true)
wrapper.should.have.prop('ui', false)
wrapper.should.have.prop('ui', true)
})
})

0 comments on commit 32053f9

Please sign in to comment.