shopify_app 13.0.0 → 16.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. checksums.yaml +4 -4
  2. data/.github/ISSUE_TEMPLATE.md +5 -0
  3. data/.github/PULL_REQUEST_TEMPLATE.md +6 -0
  4. data/.github/workflows/build.yml +38 -0
  5. data/.github/workflows/rubocop.yml +22 -0
  6. data/.gitignore +0 -2
  7. data/.rubocop.yml +14 -6
  8. data/CHANGELOG.md +95 -0
  9. data/Gemfile +5 -0
  10. data/Gemfile.lock +252 -0
  11. data/README.md +83 -45
  12. data/Rakefile +1 -0
  13. data/SECURITY.md +59 -0
  14. data/app/assets/images/storage_access.svg +1 -2
  15. data/app/assets/javascripts/shopify_app/storage_access.js +2 -1
  16. data/app/assets/javascripts/shopify_app/top_level_interaction.js +1 -1
  17. data/app/controllers/concerns/shopify_app/authenticated.rb +1 -0
  18. data/app/controllers/concerns/shopify_app/require_known_shop.rb +39 -0
  19. data/app/controllers/shopify_app/authenticated_controller.rb +1 -0
  20. data/app/controllers/shopify_app/callback_controller.rb +77 -15
  21. data/app/controllers/shopify_app/extension_verification_controller.rb +2 -7
  22. data/app/controllers/shopify_app/sessions_controller.rb +24 -7
  23. data/app/controllers/shopify_app/webhooks_controller.rb +6 -5
  24. data/app/views/shopify_app/partials/_button_styles.html.erb +41 -36
  25. data/app/views/shopify_app/partials/_card_styles.html.erb +3 -3
  26. data/app/views/shopify_app/partials/_empty_state_styles.html.erb +28 -59
  27. data/app/views/shopify_app/partials/_form_styles.html.erb +56 -0
  28. data/app/views/shopify_app/partials/_layout_styles.html.erb +16 -1
  29. data/app/views/shopify_app/partials/_typography_styles.html.erb +6 -6
  30. data/app/views/shopify_app/sessions/enable_cookies.html.erb +2 -7
  31. data/app/views/shopify_app/sessions/new.html.erb +38 -110
  32. data/app/views/shopify_app/sessions/request_storage_access.html.erb +1 -1
  33. data/app/views/shopify_app/sessions/top_level_interaction.html.erb +21 -22
  34. data/config/locales/fi.yml +1 -1
  35. data/config/locales/nl.yml +7 -7
  36. data/config/locales/th.yml +4 -4
  37. data/config/routes.rb +1 -0
  38. data/docs/Quickstart.md +7 -17
  39. data/docs/Releasing.md +16 -14
  40. data/karma.conf.js +1 -1
  41. data/lib/generators/shopify_app/add_after_authenticate_job/add_after_authenticate_job_generator.rb +5 -3
  42. data/lib/generators/shopify_app/add_after_authenticate_job/templates/after_authenticate_job.rb +1 -0
  43. data/lib/generators/shopify_app/add_marketing_activity_extension/add_marketing_activity_extension_generator.rb +2 -1
  44. data/lib/generators/shopify_app/add_marketing_activity_extension/templates/marketing_activities_controller.rb +4 -4
  45. data/lib/generators/shopify_app/add_webhook/add_webhook_generator.rb +5 -4
  46. data/lib/generators/shopify_app/add_webhook/templates/{webhook_job.rb → webhook_job.rb.tt} +5 -0
  47. data/lib/generators/shopify_app/app_proxy_controller/app_proxy_controller_generator.rb +4 -3
  48. data/lib/generators/shopify_app/app_proxy_controller/templates/app_proxy_controller.rb +3 -3
  49. data/lib/generators/shopify_app/app_proxy_controller/templates/app_proxy_route.rb +10 -9
  50. data/lib/generators/shopify_app/authenticated_controller/authenticated_controller_generator.rb +1 -1
  51. data/lib/generators/shopify_app/controllers/controllers_generator.rb +2 -1
  52. data/lib/generators/shopify_app/home_controller/home_controller_generator.rb +22 -3
  53. data/lib/generators/shopify_app/home_controller/templates/index.html.erb +67 -17
  54. data/lib/generators/shopify_app/home_controller/templates/unauthenticated_home_controller.rb +10 -0
  55. data/lib/generators/shopify_app/install/install_generator.rb +11 -10
  56. data/lib/generators/shopify_app/install/templates/embedded_app.html.erb +1 -1
  57. data/lib/generators/shopify_app/install/templates/flash_messages.js +0 -2
  58. data/lib/generators/shopify_app/install/templates/omniauth.rb +2 -1
  59. data/lib/generators/shopify_app/install/templates/{shopify_app.rb → shopify_app.rb.tt} +4 -3
  60. data/lib/generators/shopify_app/install/templates/user_agent.rb +2 -1
  61. data/lib/generators/shopify_app/products_controller/products_controller_generator.rb +19 -0
  62. data/lib/generators/shopify_app/products_controller/templates/products_controller.rb +8 -0
  63. data/lib/generators/shopify_app/routes/routes_generator.rb +1 -0
  64. data/lib/generators/shopify_app/routes/templates/routes.rb +10 -9
  65. data/lib/generators/shopify_app/shop_model/shop_model_generator.rb +12 -7
  66. data/lib/generators/shopify_app/shop_model/templates/shop.rb +1 -0
  67. data/lib/generators/shopify_app/shopify_app_generator.rb +4 -3
  68. data/lib/generators/shopify_app/user_model/templates/user.rb +1 -0
  69. data/lib/generators/shopify_app/user_model/user_model_generator.rb +12 -7
  70. data/lib/generators/shopify_app/views/views_generator.rb +2 -1
  71. data/lib/shopify_app/configuration.rb +15 -8
  72. data/lib/shopify_app/controller_concerns/app_proxy_verification.rb +3 -3
  73. data/lib/shopify_app/controller_concerns/csrf_protection.rb +15 -0
  74. data/lib/shopify_app/controller_concerns/embedded_app.rb +3 -2
  75. data/lib/shopify_app/controller_concerns/itp.rb +2 -0
  76. data/lib/shopify_app/controller_concerns/localization.rb +1 -0
  77. data/lib/shopify_app/controller_concerns/login_protection.rb +85 -17
  78. data/lib/shopify_app/controller_concerns/payload_verification.rb +24 -0
  79. data/lib/shopify_app/controller_concerns/webhook_verification.rb +3 -18
  80. data/lib/shopify_app/engine.rb +26 -0
  81. data/lib/shopify_app/jobs/scripttags_manager_job.rb +1 -1
  82. data/lib/shopify_app/jobs/webhooks_manager_job.rb +1 -1
  83. data/lib/shopify_app/managers/scripttags_manager.rb +4 -3
  84. data/lib/shopify_app/managers/webhooks_manager.rb +4 -3
  85. data/lib/shopify_app/middleware/jwt_middleware.rb +42 -0
  86. data/lib/shopify_app/middleware/same_site_cookie_middleware.rb +2 -1
  87. data/lib/shopify_app/session/in_memory_session_store.rb +7 -3
  88. data/lib/shopify_app/session/in_memory_shop_session_store.rb +10 -0
  89. data/lib/shopify_app/session/in_memory_user_session_store.rb +10 -0
  90. data/lib/shopify_app/session/jwt.rb +63 -0
  91. data/lib/shopify_app/session/null_user_session_store.rb +22 -0
  92. data/lib/shopify_app/session/session_repository.rb +13 -16
  93. data/lib/shopify_app/session/session_storage.rb +1 -0
  94. data/lib/shopify_app/session/shop_session_storage.rb +21 -9
  95. data/lib/shopify_app/session/user_session_storage.rb +19 -8
  96. data/lib/shopify_app/test_helpers/all.rb +2 -0
  97. data/lib/shopify_app/test_helpers/webhook_verification_helper.rb +17 -0
  98. data/lib/shopify_app/utils.rb +6 -5
  99. data/lib/shopify_app/version.rb +2 -1
  100. data/lib/shopify_app.rb +12 -5
  101. data/package.json +7 -8
  102. data/shopify_app.gemspec +12 -7
  103. data/yarn.lock +2098 -2115
  104. metadata +56 -12
  105. data/.travis.yml +0 -27
  106. data/package-lock.json +0 -7245
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module ShopifyApp
2
3
  class AuthenticatedController < ActionController::Base
3
4
  include ShopifyApp::Authenticated
@@ -6,29 +6,85 @@ module ShopifyApp
6
6
  include ShopifyApp::LoginProtection
7
7
 
8
8
  def callback
9
- if auth_hash
10
- login_shop
9
+ return respond_with_error if invalid_request?
11
10
 
12
- if ShopifyApp::SessionRepository.user_storage.present? && user_session.blank?
13
- return redirect_to(login_url_with_optional_shop)
14
- end
11
+ store_access_token_and_build_session
15
12
 
16
- install_webhooks
17
- install_scripttags
18
- perform_after_authenticate_job
13
+ if start_user_token_flow?
14
+ return respond_with_user_token_flow
15
+ end
16
+
17
+ perform_post_authenticate_jobs
19
18
 
20
- redirect_to return_address
19
+ respond_successfully
20
+ end
21
+
22
+ private
23
+
24
+ def respond_successfully
25
+ if jwt_request?
26
+ head(:ok)
21
27
  else
28
+ redirect_to(return_address)
29
+ end
30
+ end
31
+
32
+ def respond_with_user_token_flow
33
+ Rails.logger.debug("[ShopifyApp::CallbackController] Redirecting for user token...")
34
+ redirect_to(login_url_with_optional_shop)
35
+ end
36
+
37
+ def store_access_token_and_build_session
38
+ if native_browser_request?
39
+ Rails.logger.debug("[ShopifyApp::CallbackController] Not a JWT request. Resetting session options...")
40
+ reset_session_options
41
+ else
42
+ Rails.logger.debug("[ShopifyApp::CallbackController] JWT request detected. Setting shopify session...")
43
+ end
44
+ set_shopify_session
45
+ end
46
+
47
+ def invalid_request?
48
+ return true unless auth_hash
49
+
50
+ jwt_request? && !valid_jwt_auth?
51
+ end
52
+
53
+ def native_browser_request?
54
+ !jwt_request?
55
+ end
56
+
57
+ def perform_post_authenticate_jobs
58
+ install_webhooks
59
+ install_scripttags
60
+ perform_after_authenticate_job
61
+ end
62
+
63
+ def respond_with_error
64
+ if jwt_request?
65
+ Rails.logger.debug("[ShopifyApp::CallbackController] Invalid JWT auth detected.")
66
+ head(:unauthorized)
67
+ else
68
+ Rails.logger.debug("[ShopifyApp::CallbackController] Invalid non JWT auth detected.")
22
69
  flash[:error] = I18n.t('could_not_log_in')
23
70
  redirect_to(login_url_with_optional_shop)
24
71
  end
25
72
  end
26
73
 
27
- private
74
+ def start_user_token_flow?
75
+ if jwt_request?
76
+ false
77
+ else
78
+ ShopifyApp::SessionRepository.user_storage.present? && user_session.blank?
79
+ end
80
+ end
28
81
 
29
- def login_shop
30
- reset_session_options
31
- set_shopify_session
82
+ def jwt_request?
83
+ jwt_shopify_domain || jwt_shopify_user_id
84
+ end
85
+
86
+ def valid_jwt_auth?
87
+ auth_hash && jwt_shopify_domain == shop_name && jwt_shopify_user_id == associated_user_id
32
88
  end
33
89
 
34
90
  def auth_hash
@@ -40,9 +96,13 @@ module ShopifyApp
40
96
  end
41
97
 
42
98
  def associated_user
43
- return unless auth_hash['extra'].present?
99
+ return unless auth_hash.dig('extra', 'associated_user').present?
100
+
101
+ auth_hash['extra']['associated_user'].merge('scope' => auth_hash['extra']['associated_user_scope'])
102
+ end
44
103
 
45
- auth_hash['extra']['associated_user']
104
+ def associated_user_id
105
+ associated_user && associated_user['id']
46
106
  end
47
107
 
48
108
  def token
@@ -63,9 +123,11 @@ module ShopifyApp
63
123
 
64
124
  session[:shopify_user] = associated_user
65
125
  if session[:shopify_user].present?
126
+ session[:shop_id] = nil if shop_session && shop_session.domain != shop_name
66
127
  session[:user_id] = ShopifyApp::SessionRepository.store_user_session(session_store, associated_user)
67
128
  else
68
129
  session[:shop_id] = ShopifyApp::SessionRepository.store_shop_session(session_store)
130
+ session[:user_id] = nil if user_session && user_session.domain != shop_name
69
131
  end
70
132
  session[:shopify_domain] = shop_name
71
133
  session[:user_session] = auth_hash&.extra&.session
@@ -2,19 +2,14 @@
2
2
 
3
3
  module ShopifyApp
4
4
  class ExtensionVerificationController < ActionController::Base
5
+ include ShopifyApp::PayloadVerification
5
6
  protect_from_forgery with: :null_session
6
7
  before_action :verify_request
7
8
 
8
9
  private
9
10
 
10
11
  def verify_request
11
- hmac_header = request.headers['HTTP_X_SHOPIFY_HMAC_SHA256']
12
- request_body = request.body.read
13
- secret = ShopifyApp.configuration.secret
14
- digest = OpenSSL::Digest.new('sha256')
15
-
16
- expected_hmac = Base64.strict_encode64(OpenSSL::HMAC.digest(digest, secret, request_body))
17
- head(:unauthorized) unless ActiveSupport::SecurityUtils.secure_compare(expected_hmac, hmac_header)
12
+ head(:unauthorized) unless hmac_valid?(request.body.read)
18
13
  end
19
14
  end
20
15
  end
@@ -1,5 +1,6 @@
1
+ # frozen_string_literal: true
1
2
  module ShopifyApp
2
- class SessionsController < ActionController::Base # rubocop:disable Metrics/ClassLength
3
+ class SessionsController < ActionController::Base
3
4
  include ShopifyApp::LoginProtection
4
5
 
5
6
  layout false, only: :new
@@ -9,14 +10,19 @@ module ShopifyApp
9
10
  end
10
11
 
11
12
  def new
12
- authenticate if sanitized_shop_name.present?
13
+ if sanitized_shop_name.present?
14
+ Rails.logger.debug("[ShopifyApp::SessionsController] Sanitized shop name present. Authenticating...")
15
+ authenticate
16
+ end
13
17
  end
14
18
 
15
19
  def create
20
+ Rails.logger.debug("[ShopifyApp::SessionsController] Authenticating...")
16
21
  authenticate
17
22
  end
18
23
 
19
24
  def enable_cookies
25
+ Rails.logger.debug("[ShopifyApp::SessionsController] Enabling cookies...")
20
26
  return unless validate_shop_presence
21
27
 
22
28
  render(:enable_cookies, layout: false, locals: {
@@ -29,7 +35,7 @@ module ShopifyApp
29
35
  shop: sanitized_shop_name,
30
36
  return_to: params[:return_to]
31
37
  ),
32
- current_shopify_domain: current_shopify_domain
38
+ current_shopify_domain: current_shopify_domain,
33
39
  })
34
40
  end
35
41
 
@@ -39,6 +45,7 @@ module ShopifyApp
39
45
  end
40
46
 
41
47
  def granted_storage_access
48
+ Rails.logger.debug("[ShopifyApp::SessionsController] Granted storage access.")
42
49
  return unless validate_shop_presence
43
50
 
44
51
  session['shopify.granted_storage_access'] = true
@@ -49,6 +56,7 @@ module ShopifyApp
49
56
  end
50
57
 
51
58
  def destroy
59
+ Rails.logger.debug("[ShopifyApp::SessionsController] Resetting session.")
52
60
  reset_session
53
61
  flash[:notice] = I18n.t('.logged_out')
54
62
  redirect_to(login_url_with_optional_shop)
@@ -65,18 +73,23 @@ module ShopifyApp
65
73
  set_user_tokens_option
66
74
 
67
75
  if user_agent_can_partition_cookies
76
+ Rails.logger.debug("[ShopifyApp::SessionsController] Authenticating with partitioning...")
68
77
  authenticate_with_partitioning
69
78
  else
79
+ Rails.logger.debug("[ShopifyApp::SessionsController] Authenticating normally...")
70
80
  authenticate_normally
71
81
  end
72
82
  end
73
83
 
74
84
  def authenticate_normally
75
85
  if request_storage_access?
86
+ Rails.logger.debug("[ShopifyApp::SessionsController] Redirecting to request storage access...")
76
87
  redirect_to_request_storage_access
77
88
  elsif authenticate_in_context?
89
+ Rails.logger.debug("[ShopifyApp::SessionsController] Authenticating in context...")
78
90
  authenticate_in_context
79
91
  else
92
+ Rails.logger.debug("[ShopifyApp::SessionsController] Authenticating at top level...")
80
93
  authenticate_at_top_level
81
94
  end
82
95
  end
@@ -91,8 +104,10 @@ module ShopifyApp
91
104
  end
92
105
  end
93
106
 
107
+ # rubocop:disable Lint/SuppressedException
94
108
  def set_user_tokens_option
95
109
  if shop_session.blank?
110
+ Rails.logger.debug("[ShopifyApp::SessionsController] Shop session is blank.")
96
111
  session[:user_tokens] = false
97
112
  return
98
113
  end
@@ -110,10 +125,12 @@ module ShopifyApp
110
125
  session[:user_tokens] = false
111
126
  rescue StandardError
112
127
  end
128
+ # rubocop:enable Lint/SuppressedException
113
129
 
114
130
  def validate_shop_presence
115
131
  @shop = sanitized_shop_name
116
132
  unless @shop
133
+ Rails.logger.debug("[ShopifyApp::SessionsController] Invalid shop detected.")
117
134
  render_invalid_shop_error
118
135
  return false
119
136
  end
@@ -122,12 +139,12 @@ module ShopifyApp
122
139
  end
123
140
 
124
141
  def copy_return_to_param_to_session
125
- session[:return_to] = params[:return_to] if params[:return_to]
142
+ session[:return_to] = RedirectSafely.make_safe(params[:return_to], '/') if params[:return_to]
126
143
  end
127
144
 
128
145
  def render_invalid_shop_error
129
146
  flash[:error] = I18n.t('invalid_shop_url')
130
- redirect_to return_address
147
+ redirect_to(return_address)
131
148
  end
132
149
 
133
150
  def enable_cookie_access
@@ -138,7 +155,7 @@ module ShopifyApp
138
155
  end
139
156
 
140
157
  def authenticate_in_context
141
- redirect_to "#{main_app.root_path}auth/shopify"
158
+ redirect_to("#{main_app.root_path}auth/shopify")
142
159
  end
143
160
 
144
161
  def authenticate_at_top_level
@@ -173,7 +190,7 @@ module ShopifyApp
173
190
  shop: sanitized_shop_name,
174
191
  return_to: session[:return_to]
175
192
  ),
176
- current_shopify_domain: current_shopify_domain
193
+ current_shopify_domain: current_shopify_domain,
177
194
  }
178
195
  )
179
196
  end
@@ -1,14 +1,15 @@
1
+ # frozen_string_literal: true
1
2
  module ShopifyApp
3
+ class MissingWebhookJobError < StandardError; end
4
+
2
5
  class WebhooksController < ActionController::Base
3
6
  include ShopifyApp::WebhookVerification
4
7
 
5
- class ShopifyApp::MissingWebhookJobError < StandardError; end
6
-
7
8
  def receive
8
9
  params.permit!
9
- job_args = {shop_domain: shop_domain, webhook: webhook_params.to_h}
10
+ job_args = { shop_domain: shop_domain, webhook: webhook_params.to_h }
10
11
  webhook_job_klass.perform_later(job_args)
11
- head :no_content
12
+ head(:ok)
12
13
  end
13
14
 
14
15
  private
@@ -18,7 +19,7 @@ module ShopifyApp
18
19
  end
19
20
 
20
21
  def webhook_job_klass
21
- webhook_job_klass_name.safe_constantize or raise ShopifyApp::MissingWebhookJobError
22
+ webhook_job_klass_name.safe_constantize || raise(ShopifyApp::MissingWebhookJobError)
22
23
  end
23
24
 
24
25
  def webhook_job_klass_name(type = webhook_type)
@@ -1,6 +1,5 @@
1
1
  <style>
2
2
  .Polaris-Button {
3
- fill:#637381;
4
3
  position:relative;
5
4
  display:-webkit-inline-box;
6
5
  display:-ms-inline-flexbox;
@@ -15,12 +14,14 @@
15
14
  min-width:3.6rem;
16
15
  margin:0;
17
16
  padding:0.7rem 1.6rem;
18
- background:linear-gradient(to bottom, white, #f9fafb);
19
- border:1px solid #c4cdd5;
20
- box-shadow:0 1px 0 0 rgba(22, 29, 37, 0.05);
21
- border-radius:3px;
17
+ background-color:#ffffff;
18
+ border:1px solid #babfc3;
19
+ border-top-color: #c9cccf;
20
+ border-bottom-color: #babfc4;
21
+ box-shadow:0 1px 0 0 rgba(0, 0, 0, 0.05);
22
+ border-radius:4px;
22
23
  line-height:1;
23
- color:#212b36;
24
+ color:#202223;
24
25
  text-align:center;
25
26
  cursor:pointer;
26
27
  -webkit-user-select:none;
@@ -29,30 +30,44 @@
29
30
  user-select:none;
30
31
  text-decoration:none;
31
32
  transition-property:background, border, box-shadow;
32
- transition-duration:200ms;
33
+ transition-duration:100ms;
33
34
  transition-timing-function:cubic-bezier(0.64, 0, 0.35, 1);
34
35
  }
35
36
 
36
37
  .Polaris-Button:hover {
37
- background:linear-gradient(to bottom, #f9fafb, #f4f6f8);
38
- border-color:#c4cdd5;
38
+ background-color:#f6f6f7;
39
39
  }
40
40
 
41
41
  .Polaris-Button:focus {
42
- border-color:#5c6ac4;
43
42
  outline:0;
44
- box-shadow:0 0 0 1px #5c6ac4;
43
+ }
44
+
45
+ .Polaris-Button:focus:after {
46
+ box-shadow:0 0 0 .2rem #448fff;
47
+ }
48
+
49
+ .Polaris-Button:after {
50
+ content:'';
51
+ position:absolute;
52
+ z-index:1;
53
+ top:-.2rem;
54
+ right:-.2rem;
55
+ bottom:-.2rem;
56
+ left:-.2rem;
57
+ display:block;
58
+ pointer-events:none;
59
+ box-shadow:0 0 0 -.2rem #448fff;
60
+ transition:box-shadow 100ms cubic-bezier(0.64, 0, 0.35, 1);
61
+ border-radius:5px;
45
62
  }
46
63
 
47
64
  .Polaris-Button:active {
48
- background:linear-gradient(to bottom, #f4f6f8, #f4f6f8);
49
- border-color:#c4cdd5;
50
- box-shadow:0 0 0 0 transparent, inset 0 1px 1px 0 rgba(99, 115, 129, 0.1), inset 0 1px 4px 0 rgba(99, 115, 129, 0.2);
65
+ background-color:#f1f2f3);
51
66
  }
52
67
 
53
68
  .Polaris-Button__Content {
54
- font-size:1.5rem;
55
- font-weight:400;
69
+ font-size:1.4rem;
70
+ font-weight:500;
56
71
  line-height:1.6rem;
57
72
  text-transform:initial;
58
73
  letter-spacing:initial;
@@ -70,35 +85,25 @@
70
85
  min-height:1px;
71
86
  }
72
87
 
73
- @media (min-width: 40em) {
74
- .Polaris-Button__Content {
75
- font-size:1.4rem;
76
- }
77
- }
78
-
79
88
  .Polaris-Button--primary {
80
- background:linear-gradient(to bottom, #6371c7, #5563c1);
81
- border-color:#3f4eae;
82
- box-shadow:inset 0 1px 0 0 #6774c8, 0 1px 0 0 rgba(22, 29, 37, 0.05), 0 0 0 0 transparent;
89
+ background-color:#008060;
90
+ border-color:transparent;
91
+ border-width:0;
83
92
  color:white;
84
- fill:white;
85
93
  }
86
94
 
87
95
  .Polaris-Button--primary:hover {
88
- background:linear-gradient(to bottom, #5c6ac4, #4959bd);
89
- border-color:#3f4eae;
96
+ background-color:#006e52;
97
+ border-color:transparent;
90
98
  color:white;
91
- text-decoration:none;
92
99
  }
93
100
 
94
- .Polaris-Button--primary:focus {
95
- border-color:#202e78;
96
- box-shadow:inset 0 1px 0 0 #6f7bcb, 0 1px 0 0 rgba(22, 29, 37, 0.05), 0 0 0 1px #202e78;
101
+ .Polaris-Button--primary:active {
102
+ background-color:#005e46;
103
+ border-color:transparent;
97
104
  }
98
105
 
99
- .Polaris-Button--primary:active {
100
- background:linear-gradient(to bottom, #3f4eae, #3f4eae);
101
- border-color:#38469b;
102
- box-shadow:inset 0 0 0 0 transparent, 0 1px 0 0 rgba(22, 29, 37, 0.05), 0 0 1px 0 #38469b;
106
+ .Polaris-Button--sizeLarge {
107
+ padding:1.1rem 2.4rem;
103
108
  }
104
109
  </style>
@@ -11,7 +11,7 @@
11
11
 
12
12
  @media (min-width: 30.625em) {
13
13
  .Polaris-Card {
14
- border-radius:3px;
14
+ border-radius:8px;
15
15
  }
16
16
  }
17
17
 
@@ -24,10 +24,10 @@
24
24
  }
25
25
 
26
26
  .Polaris-Card__Section + .Polaris-Card__Section {
27
- border-top:1px solid #dfe3e8;
27
+ border-top:.1rem solid #e4e5e7;
28
28
  }
29
29
 
30
30
  .Polaris-Card__Section--subdued {
31
- background-color:#f9fafb;
31
+ background-color:#fafbfb;
32
32
  }
33
33
  </style>