{"action":"created","issue":{"url":"https://api.github.com/repos/Shopify/polaris/issues/368","repository_url":"https://api.github.com/repos/Shopify/polaris","labels_url":"https://api.github.com/repos/Shopify/polaris/issues/368/labels{/name}","comments_url":"https://api.github.com/repos/Shopify/polaris/issues/368/comments","events_url":"https://api.github.com/repos/Shopify/polaris/issues/368/events","html_url":"https://github.com/Shopify/polaris/issues/368","id":337837817,"node_id":"MDU6SXNzdWUzMzc4Mzc4MTc=","number":368,"title":"RangeSlider divides by zero when min and max are equal","user":{"login":"andrewpye","id":5737342,"node_id":"MDQ6VXNlcjU3MzczNDI=","avatar_url":"https://avatars3.githubusercontent.com/u/5737342?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewpye","html_url":"https://github.com/andrewpye","followers_url":"https://api.github.com/users/andrewpye/followers","following_url":"https://api.github.com/users/andrewpye/following{/other_user}","gists_url":"https://api.github.com/users/andrewpye/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewpye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewpye/subscriptions","organizations_url":"https://api.github.com/users/andrewpye/orgs","repos_url":"https://api.github.com/users/andrewpye/repos","events_url":"https://api.github.com/users/andrewpye/events{/privacy}","received_events_url":"https://api.github.com/users/andrewpye/received_events","type":"User","site_admin":false},"labels":[{"id":588288143,"node_id":"MDU6TGFiZWw1ODgyODgxNDM=","url":"https://api.github.com/repos/Shopify/polaris/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-03T10:26:06Z","updated_at":"2018-07-03T19:14:38Z","closed_at":null,"author_association":"NONE","body":"# Issue summary\r\nMinor issue, but when the same value is passed to the `RangeSlider` component for both `min` and `max`, [`sliderProgress` is `NaN` due to dividing by zero](https://github.com/Shopify/polaris/blob/master/src/components/RangeSlider/RangeSlider.tsx#L105). This means that the `--Polaris-RangeSlider-progress` style applied to the `div.Polaris-RangeSlider` takes a value of `NaN%`.\r\n\r\n## Steps to reproduce the problem\r\n\r\n1. Render a `RangeSlider` component, passing the same value for both `min` and `max`.\r\n2. Inspect the styles applied to the `div.Polaris-RangeSlider` element.\r\n\r\n## Specifications\r\n\r\n- Are you using the React components? (Y/N): Y\r\n- Polaris version number: v2.2.0\r\n- Browser: Google Chrome Version 67.0.3396.99 (Official Build) (64-bit)\r\n- Device: Macbook Pro\r\n- Operating System: macOS Sierra Version 10.12.6 (16G29)"},"comment":{"url":"https://api.github.com/repos/Shopify/polaris/issues/comments/402264448","html_url":"https://github.com/Shopify/polaris/issues/368#issuecomment-402264448","issue_url":"https://api.github.com/repos/Shopify/polaris/issues/368","id":402264448,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjI2NDQ0OA==","user":{"login":"ry5n","id":804014,"node_id":"MDQ6VXNlcjgwNDAxNA==","avatar_url":"https://avatars0.githubusercontent.com/u/804014?v=4","gravatar_id":"","url":"https://api.github.com/users/ry5n","html_url":"https://github.com/ry5n","followers_url":"https://api.github.com/users/ry5n/followers","following_url":"https://api.github.com/users/ry5n/following{/other_user}","gists_url":"https://api.github.com/users/ry5n/gists{/gist_id}","starred_url":"https://api.github.com/users/ry5n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ry5n/subscriptions","organizations_url":"https://api.github.com/users/ry5n/orgs","repos_url":"https://api.github.com/users/ry5n/repos","events_url":"https://api.github.com/users/ry5n/events{/privacy}","received_events_url":"https://api.github.com/users/ry5n/received_events","type":"User","site_admin":false},"created_at":"2018-07-03T19:14:38Z","updated_at":"2018-07-03T19:14:38Z","author_association":"NONE","body":"Thanks for reporting this; I’ve opened a corresponding issue in our internal bug tracker.\r\n\r\nIs there a situation where this could happen in your app? It will help assess priority."}}
{"actor":{"display_login":"ry5n"}}