Skip to content

Conversation

tofumatt
Copy link
Contributor

Add a horizontal result card according to mocks.

Fixes mozilla/addons#10505.

These only appear on desktop; other pages should largely remain the same.

Extensions Landing

screenshot 2017-06-27 11 45 37

Themes Landing

screenshot 2017-06-27 11 44 41

@tofumatt tofumatt requested a review from kumar303 June 27, 2017 18:46
@tofumatt tofumatt force-pushed the different-size-addon-cards branch 2 times, most recently from 4c8fe37 to 1f56c93 Compare June 27, 2017 18:51
Copy link
Contributor

@kumar303 kumar303 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean to commit the sketch file?

r+wc

top: 0;
}

ul.AddonsCard-list {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to have ul in the selector?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sadly yes because the CardList styles are a bit too specific. We can clean them up later but for now this is fine 😄

expect(node.textContent).toEqual(`Rated ${fakeAddon.ratings.average} out of 5`);
const root = render();

expect(root.find('.SearchResult-rating').length).toEqual(1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could use toHaveLength()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@tofumatt
Copy link
Contributor Author

I didn't, thanks! Sometimes I git add . and Sketch modifies the file. Thanks!

@tofumatt tofumatt force-pushed the different-size-addon-cards branch from 1f56c93 to d61c557 Compare June 28, 2017 00:18
@tofumatt tofumatt force-pushed the different-size-addon-cards branch from d61c557 to 638940f Compare June 28, 2017 00:23
@tofumatt tofumatt merged commit 0e1c9ce into master Jun 28, 2017
@tofumatt tofumatt deleted the different-size-addon-cards branch June 28, 2017 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a horizontal card list view
2 participants