Skip to content

Commit ab43784

Browse files
committed
Removes changes to form_control
1 parent 413f04c commit ab43784

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

app/components/primer/alpha/form_control.rb

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,14 @@ class FormControl < Primer::Component
4848
# @param visually_hide_label [Boolean] When set to `true`, hides the label. Although the label will be hidden visually, it will still be visible to screen readers.
4949
# @param full_width [Boolean] When set to `true`, the form control will take up all the horizontal space allowed by its container.
5050
# @param label_arguments [Hash] HTML attributes to attach to the `<label>` element that labels the input.
51-
# @param character_limit [Number] Optional character limit for the input. If provided, a character counter will be displayed below the input.
5251
# @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
53-
def initialize(label:, caption: nil, validation_message: nil, required: false, visually_hide_label: false, full_width: false, label_arguments: {}, character_limit: nil, **system_arguments)
52+
def initialize(label:, caption: nil, validation_message: nil, required: false, visually_hide_label: false, full_width: false, label_arguments: {}, **system_arguments)
5453
@label = label
5554
@init_caption = caption
5655
@validation_message = validation_message
5756
@required = required
5857
@visually_hide_label = visually_hide_label
5958
@full_width = full_width
60-
@character_limit = character_limit
6159
@label_arguments = label_arguments
6260
@system_arguments = system_arguments
6361

@@ -110,12 +108,6 @@ def full_width?
110108
@full_width
111109
end
112110

113-
# Returns the character limit for the input, if set.
114-
# @returns [Number, nil]
115-
def character_limit?
116-
@character_limit
117-
end
118-
119111
private
120112

121113
def before_render

0 commit comments

Comments
 (0)