polaris icon indicating copy to clipboard operation
polaris copied to clipboard

EmptyState image allows the user to scroll horizontally.

Open cargix1 opened this issue 9 years ago • 1 comments

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.

screen shot 2017-06-19 at 17 40 35

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 :)

cargix1 avatar Jun 19 '17 16:06 cargix1

This appears to have been fixed now i've upgraded to Polaris v1.1.1. Great work!

cargix1 avatar Jun 20 '17 10:06 cargix1