Index: wp-includes/default-widgets.php
===================================================================
--- wp-includes/default-widgets.php	(revision 23195)
+++ wp-includes/default-widgets.php	(working copy)
@@ -723,7 +723,7 @@
 		<input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $title; ?>" /></p>
 
 		<p><label for="<?php echo $this->get_field_id('number'); ?>"><?php _e('Number of comments to show:'); ?></label>
-		<input id="<?php echo $this->get_field_id('number'); ?>" name="<?php echo $this->get_field_name('number'); ?>" type="text" value="<?php echo $number; ?>" size="3" /></p>
+		<input class="tiny-text" id="<?php echo $this->get_field_id('number'); ?>" name="<?php echo $this->get_field_name('number'); ?>" type="number" step="1" min="1" value="<?php echo $number; ?>" size="3" /></p>
 <?php
 	}
 }
Index: wp-admin/includes/dashboard.php
===================================================================
--- wp-admin/includes/dashboard.php	(revision 23195)
+++ wp-admin/includes/dashboard.php	(working copy)
@@ -766,7 +766,7 @@
 	$number = isset( $widget_options['dashboard_recent_comments']['items'] ) ? (int) $widget_options['dashboard_recent_comments']['items'] : '';
 
 	echo '<p><label for="comments-number">' . __('Number of comments to show:') . '</label>';
-	echo '<input id="comments-number" name="widget-recent-comments[items]" type="text" value="' . $number . '" size="3" /></p>';
+	echo ' <input class="small-text" id="comments-number" name="widget-recent-comments[items]" type="number" step="1" min="1" value="' . $number . '" size="3" /></p>';
 }
 
 function wp_dashboard_incoming_links() {
Index: wp-admin/css/wp-admin.css
===================================================================
--- wp-admin/css/wp-admin.css	(revision 23195)
+++ wp-admin/css/wp-admin.css	(working copy)
@@ -886,6 +886,14 @@
 	width: 60px;
 }
 
+input.tiny-text {
+	width: 35px;
+}
+
+input[type="number"].tiny-text {
+	width: 45px;
+}
+
 #doaction,
 #doaction2,
 #post-query-submit {
