Background: #2002336-86: Introduce a CSS class to hide borders of fieldset elements

Problem

  1. An input element with a 'size' attribute value does not respect a max-width applied via CSS, when the input element appears in a fieldset.

  2. http://stackoverflow.com/a/18039139/811306

    For some reason the size attribute over-rode the css widths.

  3. http://stackoverflow.com/a/1480592/811306

    HTML controls the semantic meaning of the elements. CSS controls the layout/style of the page. Use CSS when you are controlling your layout.

    In short, never use size=""

Proof

http://jsfiddle.net/sun/6gWA5/19/

Proposed solution

  1. Remove the default value for #size from all form input elements throughout core.

Only local images are allowed.

Only local images are allowed.

pre-patch field sizes

Click the following images to view full-size.

Before (Firefox)

Before (Chrome) Top part of page

Before (Chrome) Bottom part of page

Demonstrations of post-patch field sizes

After Patch 50 (Chrome) Top part of page

After Patch 50 (Chrome) Bottom part of page

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sun’s picture

Damn. This reduces the width of input form elements to a default of ~10 chars throughout core...

Adding min-width: 100% fixes it. Hm.

By supplying a default of 60, we seemingly intended to all input elements to have a default width that "fits into an assumed 1995-ish main page content container"...

→ When not exceeding the max-width of 100%, the default 'size' of 60 is an articulation of a relative font-based width.

→ Globally replace with min-width: 20em?


I just tried that in the fiddle, and min-width overrides max-width :-(((

sun’s picture

Issue summary: View changes

Apparently, this is caused by the wrapping fieldsets:

http://jsfiddle.net/sun/6gWA5/2/

sun’s picture

Issue summary: View changes

Status: Needs review » Needs work

The last submitted patch, drupal8.input-size.0.patch, failed testing.

sun’s picture

Issue summary: View changes
Status: Needs work » Needs review

Huh, not even width works correctly for inputs in a fieldset: http://jsfiddle.net/sun/6gWA5/3/

markhalliwell’s picture

Yes please, let's remove it from core. We really shouldn't be using this anymore unless there's a good reason, like captchas and phone numbers (but even that's debatable). The themes are responsible for displaying how a form looks (especially in a lot of frameworks). If we "need" input widths on forms in core, we should be adding that CSS to seven or bartik.

markhalliwell’s picture

Another alternative would be to simply remove it from core add #size back in both the seven and bartik themes by preprocessing the elements. This would fix both the "get it out of core for themes that don't need it" and it would temporarily get around the CSS nightmares you're having. Bartik and seven kind of expect these to be set (I'm pretty sure they don't style input widths... could be wrong though).

sun’s picture

Issue summary: View changes
Issue tags: +Needs manual testing
FileSize
52.15 KB

Sorry — apparently, I distorted the tests my fiddle, by putting both an input with 'size' and one without into the same fieldsets:

The element with 'size' causes the wrapping fieldset to break the bounding box → the max-width of any other element is the already broken box width.

After splitting into separate fieldsets, it looks slightly better now: http://jsfiddle.net/sun/6gWA5/19/

→ We're able to apply min-width + max-width: 100%

However, we're not able to apply a font-relative min-width à la min-width: 30em, because that would always be the minimum width, regardless, of whether less horizontal space is available (breaking the layout again).

We can only use a percentage, because a smaller percentage is always smaller than 100%.

Therefore, my proposed solution is this:

[type="email"], [type="file"], [type="password"], [type="search"], [type="tel"], [type="text"], [type="url"] {
  min-width: 55%;
  max-width: 100%;
}

The min-width of 55% comes closest to the former default size of 60 for

  1. all possible incarnations (multiple layers of element nesting, inline elements, etc)
  2. arbitrary screen resolutions

Status: Needs review » Needs work

The last submitted patch, 8: drupal8.input-size.8.patch, failed testing.

sun’s picture

Status: Needs work » Needs review
FileSize
52.15 KB

Status: Needs review » Needs work

The last submitted patch, 10: input.size_.10.patch, failed testing.

sun’s picture

Status: Needs work » Needs review
FileSize
52.14 KB

Sorry, merge of latest HEAD went wrong.

markhalliwell’s picture

Status: Needs review » Needs work
Issue tags: +Bartik, +Seven
diff --git a/core/modules/system/css/system.theme.css b/core/modules/system/css/system.theme.css
@@ -84,6 +84,10 @@ h4.label {
+[type="date"], [type="email"], [type="file"], [type="password"], [type="search"], [type="tel"], [type="text"], [type="url"] {
+  min-width: 55%;
+  max-width: 100%;
+}

This REALLY should be added to the individual seven and bartik themes, not system.theme.css (which is also very assumptive). Many frameworks already provide handling of input elements. Enforcing this through core just causes completely unnecessary overrides.

mike stewart’s picture

-1

Without heavily considering the implications, I don't have a strong opinion on removing size from elements. Off the top of my head, I agree 'size' is not useful for presentation purposes; and CSS should be utilized. However, I beleive 'size' has useful functional purposes which affect browser behavior to ensure a max number of characters is not exceeded in a form, and therefore should be the same as the db field storing the submitted data.

That said, the problem #1 defined by the issue, that you cannot override the input size with css, the test code is incorrect. The tests incorrectly use max-width in an attempt to establish width. This is incorrect (and I agree CSS can be nightmarishly confusing in this regard). However, the correct way to override an element 'size' is to set the width on an element. You may ALSO add a max-width to ensure that element is contained within its parent container (such as a DOM parent or browser viewport).

correct test: http://jsfiddle.net/mdrmike/6gWA5/22/

supporting example: http://stackoverflow.com/questions/2125509/how-do-i-set-the-size-of-an-h...

mgifford’s picture

Issue tags: +Needs usability review

I'd actually be into having a set width for these form elements. I hate when there a jagged form elements. Much prefer a fully justified form myself.

Anyways, adding need for UX review.

sun’s picture

Status: Needs work » Needs review
Issue tags: -html5, -Needs manual testing, -Bartik, -Seven, -Needs usability review +undefined

@Mark Carver: Hm. While I can see the argument, I'm not 100% comfortable with doing that, because we'd force every theme to re-invent a sane default on its own.

In past discussions on similar topics, the benchmark always has been the Stark theme: Stark doesn't ship with any custom styles (except minimal layout), but our base expectation is that Drupal's user interface should at least look "sane" in Stark. — Without these sane defaults, every form input element would be way too small.

Also, the styles are added to system.theme.css only, which I think you want to (completely) replace/remove for a framework/base theme à la Booststrap & Co anyway. A clear separation between base/module and default theme styles was the whole point of the revised and modernized (SMA)CSS architecture in D8...?

In any case, we should manually test whether the proposed solution actually works throughout the entire Drupal core user interface. The 'size' attribute is pretty much removed from all input elements throughout core; including (smaller) search fields, [instant]filter fields, views exposed filters, forms in blocks like the user login form, etc.pp.

→ simplytest.me is most likely the easiest way for testing this change.

sun’s picture

fietserwin’s picture

#14: size defines the visible width only, the maxlength attribute defines behavior (#maxlength in Drupal code). See e.g. http://www.w3schools.com/tags/att_input_size.asp.

webchick’s picture

Priority: Normal » Major

This makes the installer look quite bad, so escalating to major.

mgifford’s picture

@webchick - do you think it's worth just adding the CSS piece of this patch - core/modules/system/css/system.theme.css

[type="date"], [type="email"], [type="file"], [type="password"], [type="search"], [type="tel"], [type="text"], [type="url"] {
  min-width: 55%;
  max-width: 100%;
}

So that the installer doesn't look so ugly? That could be done in a separate issue if this one is going to take some time.

Dragan Eror’s picture

This issue seams to become huge. This requires change in many areas, like:

  • Form API (Remove all #size options)
  • Documentation
  • CSS (fixed size overrides)
  • JavaScript (size depended scripts)
  • Hard coded HTML
Dragan Eror’s picture

Assigned: sun » Dragan Eror
Status: Needs review » Needs work

I wanted to test patch from #2193271-12: Remove default #size attribute from core in DrupalDevDays in Szeged, applied it automatically with git but returned errors when I tried to apply it to latest HEAD. I will try to re-roll the patch following git re-roll instructions https://drupal.org/patch/reroll

Dragan Eror’s picture

Status: Needs work » Needs review
FileSize
52.2 KB

Rerolled patch

Dragan Eror’s picture

Looks nice, here is screenshot.

LewisNyman’s picture

Status: Needs review » Needs work
Issue tags: +Needs issue summary update
FileSize
160.27 KB
142.84 KB

I was initially confused by this patch because the issue title mentions removing the default size attribute only, but we're actually removing all #size declarations in core. This is going to end up being a really big patch because we're going to have to go through all the forms in core and write CSS against them to get them looking how they were before.

For example here's a before/after of the views edit page.

From my point of view it seems better to remove core form size attributes in a follow up.

webchick’s picture

This indeed looks like a massive undertaking, and I'm not sure how realistic it is.

I'd love a quick spin-off at this point to at least just fix the configuration page of the install screen. It continues to look really nasty, and it's literally like the first (ok, third) page people will see in Drupal 8.

Dragan Eror’s picture

We could put just

'#size' => NULL

in install page form elements, that would quick fix the bug.

Dragan Eror’s picture

Assigned: Dragan Eror » Unassigned
LewisNyman’s picture

I'm all for just removing the default attribute here, without modifying core's form structures. That should fix the install page.

sun’s picture

A one-off fix for the installer pages may be done in #2195781: Configure Site page on install is badly formatted, not here.

LewisNyman’s picture

@sun Can you update the title or the summary to make it clear what the intention of this issue is? Are we removing the default #size value or removing all #size values in core?

LewisNyman’s picture

In suns absence I'm going to take the lead from the current issue summary. This patch should only remove the default size attribute. It shouldn't remove the size attributes that are specifically defined.

The patch for this issue should be a lot smaller.

LewisNyman’s picture

Version: 8.0.x-dev » 8.1.x-dev
Category: Bug report » Task
Status: Needs work » Postponed
webchick’s picture

Version: 8.1.x-dev » 9.x-dev

Hm. I believe this would actually constitute an API change (suddenly certain form elements would look wider/thinner than normal without CSS correction in the theme in a minor version update), so should be pushed to 9.x instead.

yoroy’s picture

This doesn't seem blocked on a usability review. Re-tagging.

catch’s picture

Version: 9.x-dev » 8.1.x-dev

I don't think this is an API change, even if we decided it is, we could probably add some core CSS to keep things looking the same in Stable.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.0-beta1 was released on March 2, 2016, which means new developments and disruptive changes should now be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

joelpittet’s picture

Status: Postponed » Needs work
Issue tags: +Novice

We need to shorten the scope to what the issue title says and what @LewisNyman said

This patch should only remove the default size attribute. It shouldn't remove the size attributes that are specifically defined.

The patch for this issue should be a lot smaller.

yoroy’s picture

Issue tags: +DevDaysMilan

Something to just take a next stab at with a patch.

Orizontal’s picture

Issue tags: +DrupalNorth2016

working on the issue @bohemier

bohemier’s picture

Working on this from DrupalNorth2016. Here's a patch that removes #size from the following form elements:

Search
Datetime
Email
Tel
Textfield
Url
Weight
File
MachineName
Password

Tested the install screen and there are small changes in the ui. See attached screens. Easily fixed in css by applying width: 100%

bohemier’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 41: remove_default_size-2193271-41.patch, failed testing.

bohemier’s picture

Rerolling... Modified the tests so that #maxlength is changed instead of #size

bohemier’s picture

Status: Needs work » Needs review

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

joelpittet’s picture

Issue tags: +Vienna2017, +Needs reroll

This needs a re-roll but mostly applies.

patching file core/lib/Drupal/Core/Render/Element/File.php
Hunk #1 FAILED at 30.
jofitz’s picture

Issue tags: -Needs reroll
FileSize
7.04 KB

Re-rolled.

tonifisler’s picture

I'm looking at the patch right now (Vienna 2017 sprints).

joelpittet’s picture

Thanks @Jo, we are working on this at the core mentored sprint. The next steps are:

  1. Review that we aren't missing any instances that may have snuck into core. (find all #size in core)
  2. Manually test the change https://www.drupal.org/contributor-tasks/manual-testing
tonifisler’s picture

Looking for any missed instances of#size :)

rominronin’s picture

Here at DrupalCon Vienna - I'm about to work on this issue.

edit: Part 2: Manually testing

al0a’s picture

Also tested it, input fields get smaller, but it's doesn't break any functionality.

mradcliffe’s picture

Thank you for the screenshots, @al0a. Can you embed the images into the issue summary?

rominronin’s picture

Issue summary: View changes
FileSize
69.63 KB
44.76 KB

In order to test patch #50, I added the following fields to a basic page type:
Timestamp
Email
File
Tel
Text (plain)
Link (for URL)
and Number (integer) (fall-back for weight)

My feedback on the above is the following:
Timestamp: no size attribute
Email: size = 60
File: size = 22
Tel: no size attribute
Text (plain): size = 60
Link (for URL): no size attribute (same for the accompanying link text field)
and Number (integer) (fall-back for weight): no size attribute

It seems like accompanying css might be a necessity to this patch?

I'll follow up with demonstrations of the outstanding changes.

Screenshots in chrome:

rominronin’s picture

Issue summary: View changes
tonifisler’s picture

As said before (#38), this patch "shouldn't remove the size attributes that are specifically defined". The underlying problem is, as said in #34, that the fields that were relying on the default '#size' value will be wider/thinner.

Should we set those specific fields with a default '#size' value or are we ok with the small visual changes in some cases?

jenlampton’s picture

... the fields that were relying on the default '#size' value will be wider/thinner ... Should we set those specific fields with a default '#size' value or are we ok with the small visual changes in some cases?

It probably depends on the fields. If there is a good reason to set a size attribute, we should add it. If there's not, the small visual changes are probably an improvement.

tonifisler’s picture

Status: Needs review » Reviewed & tested by the community

Ok so this seems to work and not break any fields. We can merge this and open a new issue if there are fields that need to be wider or narrower - that should be fixed in CSS / Theming.

al0a’s picture

Issue summary: View changes
larowlan’s picture

yoroy’s picture

There are some broken links to images in the issue summary.

FWIW, I'm ok with this patch introducing minor visual changes. Setting more specific widths where needed in a follow up issue is a good idea (URL field looks potentially a bit small for the external URL use case for example). Maybe we should open it already?

alexpott’s picture

I'm wondering if we are worried about this introducing visual regressions in live sites? The minor visual changes to core themes look fine but maybe custom and contrib won't be so forgiving?

xjm’s picture

Priority: Major » Normal

Visual disruption could potentially be allowed in minor releases, but this issue does seem extremely disruptive. On the other hand I also can't think of how we'd provide BC for this change that wasn't more problematic than the change itself, nor could I come up with how I would make this change in the continuous upgrade path.

Cottser's frontend BC notes say:

Markup coming from render arrays/JavaScript/etc. aka grey areas
Essentially treat this markup as if it's in Stable. Should likely only be changed for a bugfix if the disruption is worth it.

So, well, agreed on leaving it for the frontend framework managers to review as tagged in #63. For the bit that's within my purview: I don't think this is really a major unless theme or render system maintainers feel particularly that it should be. It was promoted in #19 for some visual regressions in the installer that should have been addressed (presumably long since) with more direct, less sledgehammer fixes.

catch’s picture

I see the screenshots, but unless I'm missing something do we only have 'after' screenshots and not 'before'?

mradcliffe’s picture

I spun up a core 8.5.x in simplytest.me and added the same fields as @rominronin did in #57 to take before screenshots. Added to issue summary.

I reduced the embedded images width to 50% and wrapped those images in links so we can click on them to view fully.

xjm credited Cottser.

xjm credited effulgentsia.

xjm’s picture

Status: Reviewed & tested by the community » Needs review
Issue tags: -Needs frontend framework manager review +Needs subsystem maintainer review, +Needs issue summary update

Thanks everyone for working on this.

Discussed with @Cottser and @effulgentsia. We're not actually convinced this change is necessary anymore, or at least not sufficiently so to justify the disruption, for a few reasons:

  • The visual regression in the installer was fixed in a more direct way.
  • The issue is very old and there's probably been improvements to browsers over the past 4 years.
  • Most cases seem to actually work fine to allow CSS to specify the width. @effulgentsia tried the following test HTML:
    <!DOCTYPE html>
    <html>
    <head>
        <style>
            #i1, #i2, #i3 {max-width: 10px}
        </style>
    </head>
    <body>
    <input type="text" id="i1" size="20" />
    <input type="text" id="i2" size="30" />
    <input type="text" id="i3" />
    </body>
    </html>

    Per @effulgentsia, all three input elements were rendered as the same size.

  • @sun's example seems to be using a max-width of 100%, which seems like a pretty specific case that doesn't justify the disruption. The other evidence in the summary like one person expressing an opinion on stackoverflow that we (including Cottser, a frontend and theme system maintainer) didn't know of as a best practice.

If we were to make this change, we'd need several things:

  1. Review and signoff from a forms subsystem maintainer (as well as a frontend framework manager once RTBC again).
  2. A stronger case in the IS for why we should make this change, and more current real-world examples or confirmation from theme developers as to why they need this change to be made.
  3. BC for Stable. One way to accomplish this might be providing a form alter in Stable to alter the old weights back in.
  4. Side-by-side screenshots taken at the same time, of all the elements. It's currently hard to compare them.
  5. A more complete patch. The current patch leaves docs about the #size element in place about all these items (maybe it should since someone could still probably specify it on their individual form, but we should confirm that.)
  6. Updated documentation indicating that the #size explaining to the developer why this change was made, so that they could follow the best practice in their own code.
  7. A change record.

But before we jump down the rabbit hole of most of that work, let's have that subsystem maintainer signoff and that stronger case for making the change. Otherwise, we might want to mark this issue wontfix instead. Thanks!

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

mradcliffe’s picture

Issue tags: -Novice

Removing Novice tag from the issue as it's currently in limbo waiting on subsystem maintainer review.

markhalliwell’s picture

Given that CSS can [now] fix the OP, I say that we "won't fix" this issue. Chasing browser bugs has never led us down a decent rabbit hole and we certainly have other bigger fish to fry instead of putting the required effort that will be needed to keep BC for this change.

Version: 8.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

andeersg’s picture

I would still argue that the default size="60" parameter is bad.

It totally breaks flexbox: https://jsbin.com/sabefubagu/4/edit?html,css,output.

.form-item {
  display: flex;
}
.form-item label { /* Fixed width on labels */
  width: 200px;
  flex-shrink: 0;
}
.form-item input { /* Input takes rest of the available width. */
  width: 100%;
}

If the width of the container is too small for size="60" the input will be pushed outside.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

Abhijith S’s picture

Patch #50 can't be applied on 9.2.x.Needs reroll

Checking patch core/lib/Drupal/Core/Datetime/Element/Datetime.php...
Hunk #1 succeeded at 259 (offset -3 lines).
Hunk #2 succeeded at 291 (offset -3 lines).
Checking patch core/lib/Drupal/Core/Render/Element/Email.php...
error: while searching for:
    $class = get_class($this);
    return [
      '#input' => TRUE,
      '#size' => 60,
      '#maxlength' => self::EMAIL_MAX_LENGTH,
      '#autocomplete_route_name' => FALSE,
      '#process' => [

error: patch failed: core/lib/Drupal/Core/Render/Element/Email.php:45
error: core/lib/Drupal/Core/Render/Element/Email.php: patch does not apply
Checking patch core/lib/Drupal/Core/Render/Element/File.php...
Checking patch core/lib/Drupal/Core/Render/Element/MachineName.php...
Hunk #1 succeeded at 81 (offset 1 line).
Checking patch core/lib/Drupal/Core/Render/Element/Password.php...
error: while searching for:
    $class = get_class($this);
    return [
      '#input' => TRUE,
      '#size' => 60,
      '#maxlength' => 128,
      '#process' => [
        [$class, 'processAjaxForm'],

error: patch failed: core/lib/Drupal/Core/Render/Element/Password.php:34
error: core/lib/Drupal/Core/Render/Element/Password.php: patch does not apply
Checking patch core/lib/Drupal/Core/Render/Element/Search.php...
error: while searching for:
    $class = get_class($this);
    return [
      '#input' => TRUE,
      '#size' => 60,
      '#maxlength' => 128,
      '#autocomplete_route_name' => FALSE,
      '#process' => [

error: patch failed: core/lib/Drupal/Core/Render/Element/Search.php:28
error: core/lib/Drupal/Core/Render/Element/Search.php: patch does not apply
Checking patch core/lib/Drupal/Core/Render/Element/Tel.php...
error: while searching for:
    $class = get_class($this);
    return [
      '#input' => TRUE,
      '#size' => 30,
      '#maxlength' => 128,
      '#autocomplete_route_name' => FALSE,
      '#process' => [

error: patch failed: core/lib/Drupal/Core/Render/Element/Tel.php:34
error: core/lib/Drupal/Core/Render/Element/Tel.php: patch does not apply
Checking patch core/lib/Drupal/Core/Render/Element/Textfield.php...
error: while searching for:
    $class = get_class($this);
    return [
      '#input' => TRUE,
      '#size' => 60,
      '#maxlength' => 128,
      '#autocomplete_route_name' => FALSE,
      '#process' => [

error: patch failed: core/lib/Drupal/Core/Render/Element/Textfield.php:49
error: core/lib/Drupal/Core/Render/Element/Textfield.php: patch does not apply
Checking patch core/lib/Drupal/Core/Render/Element/Url.php...
error: while searching for:
    $class = get_class($this);
    return [
      '#input' => TRUE,
      '#size' => 60,
      '#maxlength' => 255,
      '#autocomplete_route_name' => FALSE,
      '#process' => [

error: patch failed: core/lib/Drupal/Core/Render/Element/Url.php:36
error: core/lib/Drupal/Core/Render/Element/Url.php: patch does not apply
Checking patch core/lib/Drupal/Core/Render/Element/Weight.php...
error: while searching for:
    // Otherwise, use a text field.
    else {
      $element['#type'] = 'number';
      // Use a field big enough to fit most weights.
      $element['#size'] = 10;
      $element += $element_info_manager->getInfo('number');
    }


error: patch failed: core/lib/Drupal/Core/Render/Element/Weight.php:65
error: core/lib/Drupal/Core/Render/Element/Weight.php: patch does not apply
Checking patch core/modules/system/tests/themes/test_theme/test_theme.theme...
Hunk #1 succeeded at 16 (offset -7 lines).
Checking patch core/tests/Drupal/KernelTests/Core/Render/ElementInfoIntegrationTest.php.
Abhijith S’s picture

Added reroll for patch #50 ,Please check

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

needs-review-queue-bot’s picture

Status: Needs review » Needs work
FileSize
144 bytes

The Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

Nikhil_110’s picture

Attached patch against Drupal 10.1.x

Nikhil_110’s picture

Fixed CC issue

Rassoni’s picture

Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Needs work

Was previous tagged for issue summary appears that still needs to happen also.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.