{"action":"opened","number":11,"pull_request":{"url":"https://api.github.com/repos/NoRedInk/noredink-ui/pulls/11","id":177215659,"html_url":"https://github.com/NoRedInk/noredink-ui/pull/11","diff_url":"https://github.com/NoRedInk/noredink-ui/pull/11.diff","patch_url":"https://github.com/NoRedInk/noredink-ui/pull/11.patch","issue_url":"https://api.github.com/repos/NoRedInk/noredink-ui/issues/11","number":11,"state":"open","locked":false,"title":"Add `SegmentedControl`","user":{"login":"joneshf","id":1356417,"avatar_url":"https://avatars2.githubusercontent.com/u/1356417?v=4","gravatar_id":"","url":"https://api.github.com/users/joneshf","html_url":"https://github.com/joneshf","followers_url":"https://api.github.com/users/joneshf/followers","following_url":"https://api.github.com/users/joneshf/following{/other_user}","gists_url":"https://api.github.com/users/joneshf/gists{/gist_id}","starred_url":"https://api.github.com/users/joneshf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joneshf/subscriptions","organizations_url":"https://api.github.com/users/joneshf/orgs","repos_url":"https://api.github.com/users/joneshf/repos","events_url":"https://api.github.com/users/joneshf/events{/privacy}","received_events_url":"https://api.github.com/users/joneshf/received_events","type":"User","site_admin":false},"body":"<details>\r\n<summary>Diff from Monolith</summary>\r\n\r\n```diff\r\n1c1\r\n< module Nri.SegmentedControl exposing (Config, Option, styles, view)\r\n---\r\n> module Nri.Ui.SegmentedControl.V1 exposing (Config, Option, styles, view)\r\n12d11\r\n< import Css.FlexBoxWithVendorPrefix as FlexBox\r\n17,20c16,20\r\n< import Nri.Colors as Colors\r\n< import Nri.Colors.Extra exposing (withAlpha)\r\n< import Nri.Stylers\r\n< import Nri.Styles\r\n---\r\n> import Nri.Ui.Colors.Extra exposing (withAlpha)\r\n> import Nri.Ui.Colors.V1 as Colors\r\n> import Nri.Ui.CssFlexBoxWithVendorPrefix as FlexBox\r\n> import Nri.Ui.Fonts.V1\r\n> import Nri.Ui.Styles.V1\r\n67c67\r\n< styles : Nri.Styles.Styles Never CssClass msg\r\n---\r\n> styles : Nri.Ui.Styles.V1.Styles Never CssClass msg\r\n69c69\r\n<     Nri.Styles.styles \"Nri-SegmentedControl-\"\r\n---\r\n>     Nri.Ui.Styles.V1.styles \"Nri-Ui-SegmentedControl-V1-\"\r\n77c77,79\r\n<             , Nri.Stylers.makeFont (px 15) Colors.azure\r\n---\r\n>             , Nri.Ui.Fonts.V1.baseFont\r\n>             , fontSize (px 15)\r\n>             , color Colors.azure\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary>`elm-package diff` output</summary>\r\n\r\n```\r\nComparing NoRedInk/noredink-ui 3.2.0 to local changes...\r\nThis is a MINOR change.\r\n\r\n------ Added modules - MINOR ------\r\n\r\n    Nri.Ui.SegmentedControl.V1\r\n\r\n\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary>Screenshot of style guide</summary>\r\n\r\n![screen shot 2018-03-23 at 19 06 51](https://user-images.githubusercontent.com/1356417/37859188-9d9997dc-2ecd-11e8-9649-6d30106adac1.png)\r\n</details>\r\n\r\n##### Questions\r\n\r\n1. We're not currently depending on `nri-elm-css`, so we don't have `Nri.Stylers`. I seemed to remember that we're moving away from that. Is that right? I inlined what `Nri.Stylers.makeFont` is in the meantime. If that's not the case, I'm down to add the dependency and use it instead. If we want `Nri.Ui.Stylers.V1` here, I'm down to move it here instead.\r\n1. In the screenshot, the control has a good deal of height. The styles are the same as what's in the monolith, but the monolith's control doesn't have as much height. Any idea what might be up?\r\n\r\n    <details>\r\n    <summary>Monolith's height</summary>\r\n\r\n    <img width=\"288\" alt=\"screen shot 2018-03-23 at 19 09 59\" src=\"https://user-images.githubusercontent.com/1356417/37859229-dd11a5da-2ecd-11e8-879b-4d1a39f11648.png\">\r\n    </details>\r\n","created_at":"2018-03-24T02:17:10Z","updated_at":"2018-03-24T02:17:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/NoRedInk/noredink-ui/pulls/11/commits","review_comments_url":"https://api.github.com/repos/NoRedInk/noredink-ui/pulls/11/comments","review_comment_url":"https://api.github.com/repos/NoRedInk/noredink-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NoRedInk/noredink-ui/issues/11/comments","statuses_url":"https://api.github.com/repos/NoRedInk/noredink-ui/statuses/3b99ba56a76e43a25f2daf1ac8885abccc7fc54e","head":{"label":"NoRedInk:add-segmented-control","ref":"add-segmented-control","sha":"3b99ba56a76e43a25f2daf1ac8885abccc7fc54e","user":{"login":"NoRedInk","id":1747062,"avatar_url":"https://avatars2.githubusercontent.com/u/1747062?v=4","gravatar_id":"","url":"https://api.github.com/users/NoRedInk","html_url":"https://github.com/NoRedInk","followers_url":"https://api.github.com/users/NoRedInk/followers","following_url":"https://api.github.com/users/NoRedInk/following{/other_user}","gists_url":"https://api.github.com/users/NoRedInk/gists{/gist_id}","starred_url":"https://api.github.com/users/NoRedInk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NoRedInk/subscriptions","organizations_url":"https://api.github.com/users/NoRedInk/orgs","repos_url":"https://api.github.com/users/NoRedInk/repos","events_url":"https://api.github.com/users/NoRedInk/events{/privacy}","received_events_url":"https://api.github.com/users/NoRedInk/received_events","type":"Organization","site_admin":false},"repo":{"id":119853781,"name":"noredink-ui","full_name":"NoRedInk/noredink-ui","owner":{"login":"NoRedInk","id":1747062,"avatar_url":"https://avatars2.githubusercontent.com/u/1747062?v=4","gravatar_id":"","url":"https://api.github.com/users/NoRedInk","html_url":"https://github.com/NoRedInk","followers_url":"https://api.github.com/users/NoRedInk/followers","following_url":"https://api.github.com/users/NoRedInk/following{/other_user}","gists_url":"https://api.github.com/users/NoRedInk/gists{/gist_id}","starred_url":"https://api.github.com/users/NoRedInk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NoRedInk/subscriptions","organizations_url":"https://api.github.com/users/NoRedInk/orgs","repos_url":"https://api.github.com/users/NoRedInk/repos","events_url":"https://api.github.com/users/NoRedInk/events{/privacy}","received_events_url":"https://api.github.com/users/NoRedInk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NoRedInk/noredink-ui","description":"UI widgets we use","fork":false,"url":"https://api.github.com/repos/NoRedInk/noredink-ui","forks_url":"https://api.github.com/repos/NoRedInk/noredink-ui/forks","keys_url":"https://api.github.com/repos/NoRedInk/noredink-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NoRedInk/noredink-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NoRedInk/noredink-ui/teams","hooks_url":"https://api.github.com/repos/NoRedInk/noredink-ui/hooks","issue_events_url":"https://api.github.com/repos/NoRedInk/noredink-ui/issues/events{/number}","events_url":"https://api.github.com/repos/NoRedInk/noredink-ui/events","assignees_url":"https://api.github.com/repos/NoRedInk/noredink-ui/assignees{/user}","branches_url":"https://api.github.com/repos/NoRedInk/noredink-ui/branches{/branch}","tags_url":"https://api.github.com/repos/NoRedInk/noredink-ui/tags","blobs_url":"https://api.github.com/repos/NoRedInk/noredink-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NoRedInk/noredink-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NoRedInk/noredink-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/NoRedInk/noredink-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NoRedInk/noredink-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/NoRedInk/noredink-ui/languages","stargazers_url":"https://api.github.com/repos/NoRedInk/noredink-ui/stargazers","contributors_url":"https://api.github.com/repos/NoRedInk/noredink-ui/contributors","subscribers_url":"https://api.github.com/repos/NoRedInk/noredink-ui/subscribers","subscription_url":"https://api.github.com/repos/NoRedInk/noredink-ui/subscription","commits_url":"https://api.github.com/repos/NoRedInk/noredink-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/NoRedInk/noredink-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/NoRedInk/noredink-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/NoRedInk/noredink-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/NoRedInk/noredink-ui/contents/{+path}","compare_url":"https://api.github.com/repos/NoRedInk/noredink-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NoRedInk/noredink-ui/merges","archive_url":"https://api.github.com/repos/NoRedInk/noredink-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NoRedInk/noredink-ui/downloads","issues_url":"https://api.github.com/repos/NoRedInk/noredink-ui/issues{/number}","pulls_url":"https://api.github.com/repos/NoRedInk/noredink-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/NoRedInk/noredink-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/NoRedInk/noredink-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NoRedInk/noredink-ui/labels{/name}","releases_url":"https://api.github.com/repos/NoRedInk/noredink-ui/releases{/id}","deployments_url":"https://api.github.com/repos/NoRedInk/noredink-ui/deployments","created_at":"2018-02-01T15:23:23Z","updated_at":"2018-03-20T17:37:41Z","pushed_at":"2018-03-24T02:06:28Z","git_url":"git://github.com/NoRedInk/noredink-ui.git","ssh_url":"git@github.com:NoRedInk/noredink-ui.git","clone_url":"https://github.com/NoRedInk/noredink-ui.git","svn_url":"https://github.com/NoRedInk/noredink-ui","homepage":"http://package.elm-lang.org/packages/NoRedInk/noredink-ui/latest","size":261,"stargazers_count":2,"watchers_count":2,"language":"Elm","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":0,"open_issues":2,"watchers":2,"default_branch":"master"}},"base":{"label":"NoRedInk:master","ref":"master","sha":"ecf4de663c93ec523603cbb6d734ab2e3f438c19","user":{"login":"NoRedInk","id":1747062,"avatar_url":"https://avatars2.githubusercontent.com/u/1747062?v=4","gravatar_id":"","url":"https://api.github.com/users/NoRedInk","html_url":"https://github.com/NoRedInk","followers_url":"https://api.github.com/users/NoRedInk/followers","following_url":"https://api.github.com/users/NoRedInk/following{/other_user}","gists_url":"https://api.github.com/users/NoRedInk/gists{/gist_id}","starred_url":"https://api.github.com/users/NoRedInk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NoRedInk/subscriptions","organizations_url":"https://api.github.com/users/NoRedInk/orgs","repos_url":"https://api.github.com/users/NoRedInk/repos","events_url":"https://api.github.com/users/NoRedInk/events{/privacy}","received_events_url":"https://api.github.com/users/NoRedInk/received_events","type":"Organization","site_admin":false},"repo":{"id":119853781,"name":"noredink-ui","full_name":"NoRedInk/noredink-ui","owner":{"login":"NoRedInk","id":1747062,"avatar_url":"https://avatars2.githubusercontent.com/u/1747062?v=4","gravatar_id":"","url":"https://api.github.com/users/NoRedInk","html_url":"https://github.com/NoRedInk","followers_url":"https://api.github.com/users/NoRedInk/followers","following_url":"https://api.github.com/users/NoRedInk/following{/other_user}","gists_url":"https://api.github.com/users/NoRedInk/gists{/gist_id}","starred_url":"https://api.github.com/users/NoRedInk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NoRedInk/subscriptions","organizations_url":"https://api.github.com/users/NoRedInk/orgs","repos_url":"https://api.github.com/users/NoRedInk/repos","events_url":"https://api.github.com/users/NoRedInk/events{/privacy}","received_events_url":"https://api.github.com/users/NoRedInk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NoRedInk/noredink-ui","description":"UI widgets we use","fork":false,"url":"https://api.github.com/repos/NoRedInk/noredink-ui","forks_url":"https://api.github.com/repos/NoRedInk/noredink-ui/forks","keys_url":"https://api.github.com/repos/NoRedInk/noredink-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NoRedInk/noredink-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NoRedInk/noredink-ui/teams","hooks_url":"https://api.github.com/repos/NoRedInk/noredink-ui/hooks","issue_events_url":"https://api.github.com/repos/NoRedInk/noredink-ui/issues/events{/number}","events_url":"https://api.github.com/repos/NoRedInk/noredink-ui/events","assignees_url":"https://api.github.com/repos/NoRedInk/noredink-ui/assignees{/user}","branches_url":"https://api.github.com/repos/NoRedInk/noredink-ui/branches{/branch}","tags_url":"https://api.github.com/repos/NoRedInk/noredink-ui/tags","blobs_url":"https://api.github.com/repos/NoRedInk/noredink-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NoRedInk/noredink-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NoRedInk/noredink-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/NoRedInk/noredink-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NoRedInk/noredink-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/NoRedInk/noredink-ui/languages","stargazers_url":"https://api.github.com/repos/NoRedInk/noredink-ui/stargazers","contributors_url":"https://api.github.com/repos/NoRedInk/noredink-ui/contributors","subscribers_url":"https://api.github.com/repos/NoRedInk/noredink-ui/subscribers","subscription_url":"https://api.github.com/repos/NoRedInk/noredink-ui/subscription","commits_url":"https://api.github.com/repos/NoRedInk/noredink-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/NoRedInk/noredink-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/NoRedInk/noredink-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/NoRedInk/noredink-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/NoRedInk/noredink-ui/contents/{+path}","compare_url":"https://api.github.com/repos/NoRedInk/noredink-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NoRedInk/noredink-ui/merges","archive_url":"https://api.github.com/repos/NoRedInk/noredink-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NoRedInk/noredink-ui/downloads","issues_url":"https://api.github.com/repos/NoRedInk/noredink-ui/issues{/number}","pulls_url":"https://api.github.com/repos/NoRedInk/noredink-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/NoRedInk/noredink-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/NoRedInk/noredink-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NoRedInk/noredink-ui/labels{/name}","releases_url":"https://api.github.com/repos/NoRedInk/noredink-ui/releases{/id}","deployments_url":"https://api.github.com/repos/NoRedInk/noredink-ui/deployments","created_at":"2018-02-01T15:23:23Z","updated_at":"2018-03-20T17:37:41Z","pushed_at":"2018-03-24T02:06:28Z","git_url":"git://github.com/NoRedInk/noredink-ui.git","ssh_url":"git@github.com:NoRedInk/noredink-ui.git","clone_url":"https://github.com/NoRedInk/noredink-ui.git","svn_url":"https://github.com/NoRedInk/noredink-ui","homepage":"http://package.elm-lang.org/packages/NoRedInk/noredink-ui/latest","size":261,"stargazers_count":2,"watchers_count":2,"language":"Elm","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":0,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NoRedInk/noredink-ui/pulls/11"},"html":{"href":"https://github.com/NoRedInk/noredink-ui/pull/11"},"issue":{"href":"https://api.github.com/repos/NoRedInk/noredink-ui/issues/11"},"comments":{"href":"https://api.github.com/repos/NoRedInk/noredink-ui/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/NoRedInk/noredink-ui/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/NoRedInk/noredink-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NoRedInk/noredink-ui/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/NoRedInk/noredink-ui/statuses/3b99ba56a76e43a25f2daf1ac8885abccc7fc54e"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":182,"deletions":4,"changed_files":4}}
{"actor":{"display_login":"joneshf"}}