diff --git a/core/modules/views/src/Plugin/views/pager/Some.php b/core/modules/views/src/Plugin/views/pager/Some.php
index ef7f65d..03341d9 100644
--- a/core/modules/views/src/Plugin/views/pager/Some.php
+++ b/core/modules/views/src/Plugin/views/pager/Some.php
@@ -41,13 +41,13 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
     $pager_text = $this->displayHandler->getPagerText();
     $form['items_per_page'] = array(
       '#title' => $pager_text['items per page title'],
-      '#type' => 'textfield',
+      '#type' => 'number',
       '#description' => $pager_text['items per page description'],
       '#default_value' => $this->options['items_per_page'],
     );
 
     $form['offset'] = array(
-      '#type' => 'textfield',
+      '#type' => 'number',
       '#title' => $this->t('Offset (number of items to skip)'),
       '#description' => $this->t('For example, set this to 3 and the first 3 items will not be displayed.'),
       '#default_value' => $this->options['offset'],
