polaris
polaris copied to clipboard
EmptyState image allows the user to scroll horizontally.
Issue summary
When using the EmptyState component the image overflows causing the user to be able to scroll horizontally.
Expected behavior
I'd expect to only be able to scroll vertically and not horizontally.
Actual behavior
I'm able to scroll over to the right hand side, when I don't think I should be able to.
Steps to Reproduce the Problem
Just use the following code, open chrome and try scrolling horizontally.
<Page fullWidth title="Rates">
<Banner
title="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
status="warning"
action={{content: 'Lorem ipsum'}}
>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</Banner>
<EmptyState
heading="Rates"
action={{content: 'Enable Rates', disabled: true }}
secondaryAction={{
content: 'Learn more',
url: '#',
}}
image="https://cdn.shopify.com/s/assets/admin/empty-states-fresh/emptystate-transfers-7caef90a7678b9dba63b068c63bc911796252c217b573d989bd4f0d9c15fee81.svg"
>
<DisplayText size="medium">Prevent customers from selecting incorrect shipping rates</DisplayText>
<p>Pickup rates will only be displayed to pickup customers, delivery rates to delivery customers and shipping rates to shipping customers.</p>
</EmptyState>
</Page>
Specifications
- Polaris version: 1.0.3
- React version: 15.4.2
- Browser: Chrome 58.0.3029.110
- Device: Macbook Pro
- Operating System: Mac OS Sierra
p.s. Apologises for reporting such an petty issue, but just thought you'd like to know :)
This appears to have been fixed now i've upgraded to Polaris v1.1.1. Great work!