Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved layout of "no product results" pages with active filters #481

Merged
merged 3 commits into from
Jan 4, 2019

Conversation

fkloes
Copy link
Collaborator

@fkloes fkloes commented Jan 4, 2019

Description

This ticket is about removing a visual gap between the FilterBar and the actual page content when no products match the selected filter combination.

Type of change

  • Bug Fix 🐛 (non-breaking change which fixes an issue)
  • New Feature 🚀 (non-breaking change which adds functionality)
  • Breaking Change 💥 (fix or feature that would cause existing functionality to not work as expected)
  • Polish 💅 (Just some cleanups)
  • Docs 📝 (Changes in the documentations)
  • Internal 🏠 Only relates to internal processes.

How to test it

Goto a category with a lot of products and apply a filter combination where no products are available for. With this ticket no margin should be applied the the ProductGridComponent when it's empty.

@fkloes fkloes added the bug Something isn't working label Jan 4, 2019
@fkloes fkloes self-assigned this Jan 4, 2019
@coveralls
Copy link

coveralls commented Jan 4, 2019

Pull Request Test Coverage Report for Build 1785

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 46.137%

Totals Coverage Status
Change from base Build 1780: 0.0%
Covered Lines: 4849
Relevant Lines: 9847

💛 - Coveralls

@@ -5,4 +5,7 @@ export default css({
background: colors.light,
marginTop: 16,
padding: '0 16px',
':empty': {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe change this to only add the margin-top when there is content inside the element.

Copy link
Contributor

@richardgorman richardgorman left a comment

Choose a reason for hiding this comment

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

See code comments

@richardgorman
Copy link
Contributor

Please consider them GMD theme too

@richardgorman richardgorman merged commit 42759ff into v6.1.0 Jan 4, 2019
@richardgorman richardgorman deleted the PWA-1479-empty-component-on-small-screens branch January 4, 2019 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants