Problem/Motivation

The inline variation was recently added to form elements and wasn't taken into account on the initial implementation of form elements.

Proposed resolution

Implement inline variation of form elements. We should ensure that the new styles are compatible with radios, checkboxes, text inputs and selects. This doesn't include any work related to prefix/suffix.

This image is just a reference. Please use Figma to check spacing and other definitions:

Remaining tasks

Implement it for:

  • Text field
  • Text area
  • Selects
  • Radios/Checkboxes

User interface changes

Inline form elements will implement a common solution.

Release notes snippet

CommentFileSizeAuthor
#99 core-3029675-10.2-99.patch26.39 KBakalam
#98 core-3029675-98.patch26.31 KBakalam
#96 3029675-nr-bot.txt85 bytesneeds-review-queue-bot
#95 interdiff-92_95.txt7.37 KBgauravvvv
#95 3029675-95.patch26.92 KBgauravvvv
#93 3029675-93.patch49.23 KB_utsavsharma
#93 interdiff_92-93.txt28.14 KB_utsavsharma
#92 interdiff-85-92.txt1.52 KBtonibarbera
#92 3029675-92.patch28.63 KBtonibarbera
#90 3029675-nr-bot.txt149 bytesneeds-review-queue-bot
#71 3029675-71-REROLL.patch35.75 KBbnjmnm
#69 Screenshot 2020-10-07 at 13.26.09.png36.38 KBlauriii
#69 Screenshot 2020-10-07 at 13.25.41.png45.29 KBlauriii
#67 container-inlines.jpg80.24 KBbnjmnm
#67 3029675-67.patch36.57 KBbnjmnm
#67 interdiff_65-67.txt3.9 KBbnjmnm
#66 Screenshot 2020-10-01 at 16.42.13.png29.83 KBlauriii
#65 interdiff_61-65.txt884 bytesbnjmnm
#65 3029675-65.patch34.82 KBbnjmnm
#64 Screenshot 2020-10-01 at 15.57.45.png30.96 KBlauriii
#61 3029675--61.patch34.73 KBbnjmnm
#61 interdiff__59-61.txt5.78 KBbnjmnm
#61 container-inline-whole-form.png13.54 KBbnjmnm
#59 3029675-59.patch33.94 KBbnjmnm
#59 interdiff_57-59.txt3.44 KBbnjmnm
#58 container-inline-labels.jpg23.78 KBkatherined
#57 3029675-57.patch33.65 KBbnjmnm
#57 interdiff_54-57.txt13.41 KBbnjmnm
#57 long-labels.png150.36 KBbnjmnm
#56 Screenshot 2020-09-25 at 14.32.34.png20.78 KBlauriii
#56 Screenshot 2020-09-25 at 14.36.01.png32.49 KBlauriii
#54 3029675-54-REROLL.patch36.73 KBbnjmnm
#53 3029675-53-REROLL.patch34.67 KBbnjmnm
#52 interdiff_50-52.txt25.46 KBbnjmnm
#52 3029675-52.patch39.67 KBbnjmnm
#50 3029675-50.patch38.84 KBbnjmnm
#50 interdiff_44-50.txt10.36 KBbnjmnm
#44 3029675-44.patch32.83 KBbnjmnm
#44 interdiff_40-44.txt16.08 KBbnjmnm
#43 Screenshot 2020-09-08 at 15.00.15.png12.69 KBlauriii
#40 3029675-40-REROLL.patch30.73 KBkatherined
#38 interdiff_36-38.txt33.49 KBkatherined
#38 3029675-38.patch39.09 KBkatherined
#36 3029675-36-REROLL.patch33.78 KBbnjmnm
#34 3029675-35.patch36.14 KBbnjmnm
#34 interdiff_30-35.txt24.39 KBbnjmnm
#34 Locale_same_as_HEAD.png11.05 KBbnjmnm
#34 Actions.png10.51 KBbnjmnm
#34 SearchForm-and-WorskspaceSwitcher.png55.76 KBbnjmnm
#34 content-moderation.png44.05 KBbnjmnm
#34 maximum-dimensions-editor.png33.9 KBbnjmnm
#34 EditorImageDialog.png73.73 KBbnjmnm
#34 FieldNumberValues.png33.28 KBbnjmnm
#34 AddField.png46.85 KBbnjmnm
#34 ImageItem.png99.52 KBbnjmnm
#34 PathFilterForm.png31.4 KBbnjmnm
#34 SearchPageForm.png28.07 KBbnjmnm
#34 SearchPageListBuilder.png59.36 KBbnjmnm
#34 Dblog-same_as_HEAD.png58.61 KBbnjmnm
#34 Comment_.png13.51 KBbnjmnm
#34 NodePreview_same_as_HEAD.png16.81 KBbnjmnm
#34 SearchBlock_WorkspacesBlock.png22.59 KBbnjmnm
#34 form--inline-elements-additional-IE11-mobile.png120.13 KBbnjmnm
#34 container-inline-plus-form--inline-elements-IE11-mobile.png146.48 KBbnjmnm
#34 container-inline-IE11-mobile.png170.67 KBbnjmnm
#34 form--inline-elements-IE11-wide.png74.63 KBbnjmnm
#34 container-inline-IE11-wide.png73.97 KBbnjmnm
#34 inline-form-RTL-narrow.png530.94 KBbnjmnm
#34 inline-form-RTL-wide.png648.68 KBbnjmnm
#34 inline-form-narrow.png521.45 KBbnjmnm
#34 inline-form-wide.png648.05 KBbnjmnm
#33 Screen Shot 2020-07-17 at 8.22.36 AM.png13.55 KBbnjmnm
#33 seven-inline-form-error-narrow.png327.49 KBbnjmnm
#33 seven-inline-form-error-narrow.png327.49 KBbnjmnm
#33 claro-inline-form-error-wide.png489.21 KBbnjmnm
#33 claro-inline-form-error-narrow.png416.19 KBbnjmnm
#31 Action-inline.png31.57 KBbnjmnm
#31 ContentModeration-inline.png23.5 KBbnjmnm
#31 EditorImageMaxDimensions-inline.png48.75 KBbnjmnm
#31 ImageDialogAlign-inline.png73.83 KBbnjmnm
#31 FieldStorageConfigEditForm-inline.png31.06 KBbnjmnm
#31 ImageItem-minmaxResolution-inline.png106.01 KBbnjmnm
#31 Translate-FilterButton-nothing_to_inline.png42.82 KBbnjmnm
#31 PathFilterForm-inline.png26.92 KBbnjmnm
#31 Search-keywords-inline.png15.2 KBbnjmnm
#31 SearchPageListBuilder-inline.png42.68 KBbnjmnm
#31 WorkspaceSwitcher-default.png38.1 KBbnjmnm
#31 Comment-inline.png32.79 KBbnjmnm
#31 Dblog-FilterButton-nothing_to_inline.png47.4 KBbnjmnm
#30 IE11-wide.png73.69 KBbnjmnm
#30 IE11-narrow.png380.03 KBbnjmnm
#30 IE11-RTL-wide.png62.81 KBbnjmnm
#30 IE11-RTL-narrow.png311.49 KBbnjmnm
#30 inline-RTL.png422.39 KBbnjmnm
#30 inline-RTL-narrow.png310.92 KBbnjmnm
#30 inline-wide.png439.45 KBbnjmnm
#30 inline-narrow.png309.98 KBbnjmnm
#30 3029675--30.patch31.96 KBbnjmnm
#30 interdiff__28-30.txt20.88 KBbnjmnm
#28 interdiff_26-28.txt1.91 KBbnjmnm
#28 3029675-28.patch30.21 KBbnjmnm
#26 3029675-26.patch29.24 KBbnjmnm
#26 interdiff_24-26.txt20.64 KBbnjmnm
#26 inline-form-elements-with-errors.png538.13 KBbnjmnm
#26 inline-form-elements-default.png397.56 KBbnjmnm
#25 ContentModeration.png15.26 KBbnjmnm
#25 Editor-ImageUploadSettingsForm.png42.79 KBbnjmnm
#25 add-field.png52.99 KBbnjmnm
#25 Editor-ImageDialog.png66.52 KBbnjmnm
#25 FieldUI.png20.69 KBbnjmnm
#25 Image-ImageItem.png86.57 KBbnjmnm
#25 Action.png31.68 KBbnjmnm
#25 Node-preview-HEAD.png35.53 KBbnjmnm
#25 Node-preview-withPatch.png69.85 KBbnjmnm
#25 Path.png32.33 KBbnjmnm
#25 Search.png22.29 KBbnjmnm
#25 Search-PageListBuilder.png40.45 KBbnjmnm
#25 Classy-DateTime.png29.39 KBbnjmnm
#25 SearchBlock.png35.02 KBbnjmnm
#25 Comment.png34.61 KBbnjmnm
#25 Dblog.png21.59 KBbnjmnm
#25 Locale.png32.89 KBbnjmnm
#24 3029675-23.patch13.73 KBbnjmnm
#24 d9.test_inline-form-element-test.png258 KBbnjmnm
#24 d9.test_admin_config_system_actions.png668.82 KBbnjmnm
#24 save-moderation.png18.16 KBbnjmnm
#24 manage-fields-num-values.png42.46 KBbnjmnm
#24 3029675-23.patch13.73 KBbnjmnm
#22 container-inline-test-module.patch3.77 KBbnjmnm
#21 inline.png126.18 KBckrina
#19 inline-variant.png6.95 KBckrina
#17 interdiff.3029675.14-17.txt841 bytesaleevas
#17 3029675-17.patch4.36 KBaleevas
#14 Screenshot_2020-05-06 Basic site settings Umami Food Magazine.png14.31 KBboulaffasae
#14 3029675-14.patch4.35 KBboulaffasae
#13 inline-styles.png120.49 KBckrina

Issue fork drupal-3029675

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

  • 3029675-11.x Comparecompare
  • 11.x Comparecompare
  • 9.2.x Comparecompare
  • 3029675-joegraduate Comparechanges, plain diff MR !559
  • 3029675-add-support-for Comparecompare

Comments

lauriii created an issue. See original summary.

lauriii’s picture

Issue summary: View changes
huzooka’s picture

huzooka’s picture

Assigned: Unassigned » huzooka

Let me check how this can be done...

huzooka’s picture

huzooka’s picture

Assigned: huzooka » Unassigned

It seems that in core, the form elements with inline label are controlled by adding the container-inline class. But the actual approach is not standardized and sometimes it causes invalid markup.

Result of my research of container-inline usage:

Module Component/file Usage Issues Path/example Effect type Effect
Action ActionAdminManageForm.php Class in #attributes of a ‘details’ element /admin/config/system/actions Indirectly affected
Comment CommentAdminOverview.php Class in #attributes of a ‘details’ element Disable views and then visit /admin/content/comment Indirectly affected
Content Moderation ModerationStateWidget.php Class in #attributes of an ‘item’ element Visit a moderated entity's edit page
/node/1/edit
Directly affected
Class in #attributes of a ‘select’ element Directly affected
Dblog DblogFilterForm.php Class in #attributes of the 'actions' element Disable views and then visit /admin/reports/dblog Indirectly affected Removes margins of the actions div
Editor editor_image_upload_settings_form, editor.admin.inc as HTML #field_prefix; <div class="container-inline clearfix"> Invalid markup “Maximum dimensions”; /admin/config/content/formats/manage/basic_html Indirectly affected
EditorImageDialog.php class in #attributes of 'Align' radios Insert an image in a formatted (long) text field with the CKEditor Image button and check the 'Insert Image' dialog Indirectly affected
class in #wrapper_attributes of 'Align' radios /node/add/article
CKEditor image dialog
No effect at all (not needed)
Field UI FieldStorageConfigEditForm.php class in #attributes of 'Allowed number of values' fieldset /admin/structure/types/manage/article/fields/node.article.body/storage Indirectly affected
Image ImageItem.php as HTML #field_prefix; <div class="container-inline clearfix"> Invalid markup /admin/structure/types/manage/article/fields/node.article.field_image#edit-settings-max-resolution
Maximum image resolution
Indirectly affected
as HTML #field_prefix; <div class="container-inline clearfix"> Invalid markup /admin/structure/types/manage/article/fields/node.article.field_image#edit-settings-min-resolution
Minimum image resolution
Indirectly affected
Locale TranslateFilterForm.php Class in #attributes of the 'actions' element /admin/config/regional/translate Indirectly affected
Node node.module@846 Class in #attributes of the node preview 'container' element /node/add/article
'Preview'
Indirectly affected (non-form-elements as well) makes every child of the preview form inline
Path PathFilterForm.php class in #attributes of the whole 'Filter aliases' details element /admin/config/search/path Indirectly affected
Search SearchPageForm.php class in #attributes of the whole 'Enter your keywords' container element /search/node
/search/user
etc
Indirectly affected
SearchPageListBuilder.php class in #attributes of the 'Add search page' subform /admin/config/search/pages#edit-search-pages Indirectly affected
Testing (simpletest) SimpletestResultsForm.php Class in #attributes of the 'actions' element Indirectly affected
Views UI AddHandler.php Class of the javascript-controlled 'Selected' item /admin/structure/views/view/frontpage
Add new filter option
Select an option in the list
Directly affected
ViewAddForm.php Class in #attributes of the 'View settings' fieldset /admin/structure/views/add Indirectly affected
views_ui.theme.inc Class of the 'Operator' table cell /admin/structure/views/nojs/rearrange-filter/frontpage/page_1 Indirectly affected
Views EntityField.php as HTML #prefix; <div class="container-inline">;
end <div> tag is added by a separate form element
Bad practice /admin/structure/views/view/content
Add new field 'Tags'
Open 'Multiple field settings'
Indirectly affected
WizardPluginBase.php Class in #attributes of the 'Page display settings' and the 'Block display settings' fieldset /admin/structure/views/add Indirectly affected
Workspaces WorkspaceSwitcherForm.php class in #wrapper_attributes of the 'Current workspace' item add workspace switcher block to the block layout Directly affected
class in #wrapper_attributes of the 'Select workspace' select Directly affected
Umami theme block--search-form-block.html.twig class in the whole block plugin attributes Indirectly affected
Bartik theme block--search-form-block.html.twig class in the whole block plugin attributes Indirectly affected
Classy theme block--search-form-block.html.twig class in the whole block plugin attributes Indirectly affected
datetime-form.html.twig class in wrapper div attributes Add date and time field to the website feedback form then visit /admin/contact Indirectly affected
Seven theme seven.theme class in #wrapper_attributes of the 'Last saved' (changed) item /node/1/edit#edit-meta Directly affected
class in #wrapper_attributes of the 'Author' (author) item Directly affected

Explanation of Effect type column:

  • Direct
  • means that the HTML class is added directly to the form element's #attributes array (here I mean the form_element theme wrapper)

  • Indirect
  • means that the form element's content (label, input, prefix/suffix and description as well) is rendered inline because some of it's parent wrapper has the HTML class container-inline

huzooka’s picture

  1. To handle the direct cases the fastest solution is to check that the form_element has the container-inline class and if it has, we can replace it with a form-item--inline class (that would be the inline variation's modifier class).

  2. Indirect cases — I feel that some of them could be replaced by a combined usage of form--inline module (see #2417111: Replace container-inline with form--inline to display forms horizontally.) and our new form-item--inline modifier.

    The form--inline CSS module makes a set of form items (form__elements) inlined, and this is the right approach IMHO since its not so general like the container-inline module is.

    In the described case, the best solution would be to add some API for inline form items right in core, and reduce the usage of container-inline as much as possible...

huzooka’s picture

We need the inline form item design extended with a description, a prefix/suffix and an error message.

ckrina’s picture

Component: User interface » Needs design
ckrina’s picture

Status: Active » Postponed

Postponing until we get the design done.

huzooka’s picture

Project: Claro » Drupal core
Version: 8.x-1.x-dev » 8.9.x-dev
Component: Needs design » Claro theme
ckrina’s picture

Issue tags: +Needs design
ckrina’s picture

Version: 8.9.x-dev » 9.1.x-dev
Issue summary: View changes
Status: Postponed » Active
Issue tags: -Needs design
StatusFileSize
new120.49 KB
boulaffasae’s picture

Updated text inputs prefix

Screenshot Text input prefix

ckrina’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 14: 3029675-14.patch, failed testing. View results

aleevas’s picture

Status: Needs work » Needs review
StatusFileSize
new4.36 KB
new841 bytes

Fixed failed tests

bnjmnm’s picture

Status: Needs review » Active
Issue tags: +Needs issue summary update

Before additional patch-making, the IS should be updated so the scope is clear (and clearly not prefix/suffix related)

ckrina’s picture

Issue summary: View changes
Issue tags: -Needs issue summary update +D4DBoston
StatusFileSize
new6.95 KB

Updated the image and the focus on the Issue Summary. Ready to resume the work.

lauriii’s picture

We need a test page for testing inline fields with descriptions since we don't have any use cases of that in core. We could either create a testing patch or add this to cd_tools.

ckrina’s picture

Issue summary: View changes
StatusFileSize
new126.18 KB
bnjmnm’s picture

StatusFileSize
new3.77 KB

Here's a test module that provides a form at inline-form-element-test with inline text, radio, checkbox and textarea fields.

bnjmnm’s picture

Forgot to include a select element in the previous patch. Use this one instead.

bnjmnm’s picture

Status: Active » Needs work
StatusFileSize
new13.73 KB
new42.46 KB
new18.16 KB
new668.82 KB
new258 KB
new13.73 KB

This is a start but definitely needs more work- anybody is welcome to pick up from here.

  1. One of the approaches in #7 probably needs to be implemented. This patch unloads all core css that targets .container-inline and replaces it with custom claro styles for .container-inline and its decendants. If others think that claro-custom styles for .container-inline are acceptable
  2. Per #8: The InlineElementForm in the test module needs to be expanded to cover errors and probably prefix/suffix ( if prefix/suffix is suitable for inline form elements, we'd need designs for that)
  3. The bar with a select that is seen when previewing a node is not pleased with this change (but not sure how good it looks in claro overall)

Screenshots attached of container-inline usage with the new styles.

Note that there is more markup than the old use of container-inline, but it also doesn't have the excessive side effects of the ruthless wildcard usage in core's container-inline styles

bnjmnm’s picture

StatusFileSize
new32.89 KB
new21.59 KB
new34.61 KB
new35.02 KB
new29.39 KB
new40.45 KB
new22.29 KB
new32.33 KB
new69.85 KB
new35.53 KB
new31.68 KB
new86.57 KB
new20.69 KB
new66.52 KB
new52.99 KB
new42.79 KB
new15.26 KB

This is a mountain of screenshots that will be given more context in a followup comment. Uploading them here to make the comment-making a little easier.

bnjmnm’s picture

Status: Needs work » Needs review
StatusFileSize
new397.56 KB
new538.13 KB
new20.64 KB
new29.24 KB

A screenshot is attached that includes inline form errors. Those are not currently covered in the design, so if they don't look right here then some design input will be needed to determine how they should be displayed.

This patch has some refactoring and additional styling to account for all the use cases in #6 (other than views, which is being handled in #3066006: Convert Views UI to new design system). There's a bit of edge-casing going on, but may still be preferable to the edge-case-riddled approach of setting .container-inline * {display: inline}

Status: Needs review » Needs work

The last submitted patch, 26: 3029675-26.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

bnjmnm’s picture

Status: Needs work » Needs review
StatusFileSize
new30.21 KB
new1.91 KB

Had to account for ConfirmClassyCopiesTest

bnjmnm’s picture

Note that the styling of inline image resolution fields such as the ones found at admin/structure/types/manage/article/fields/node.article.field_image won't look ideal until #3082672: Form prefix/suffix redesign in Claro. There is SO much to review that there's no reason to changed the status to postponed waiting on that issue. Several iterations will likely take place before that's the final item before completion.

bnjmnm’s picture

StatusFileSize
new20.88 KB
new31.96 KB
new309.98 KB
new439.45 KB
new310.92 KB
new422.39 KB
new311.49 KB
new62.81 KB
new380.03 KB
new73.69 KB

*1 of 4 : patch and basic screenshots*

There's a large amount of information needed to properly review/implement/discuss this patch so this will be provided in four comments to make things easier to mentally organize (and type)

This patch builds on #28 addressing several things I spotted in review. The results can be seen in the screenshots.

The next comments will cover the use cases identified in #6, contrib modules that may be impacted by this change, and a suggested approach for error messages.

bnjmnm’s picture

*2 of 4: use cases in #6*

Several of the items in #6 don't need to be in scope. Several are in themes, and the views items are being addressed in #3066006: Convert Views UI to new design system.

Action

https://www.drupal.org/files/issues/2020-07-17/Action-inline.png

Content Moderation

https://www.drupal.org/files/issues/2020-07-17/ContentModeration-inline.png

Editor (maximum dimensions)

https://www.drupal.org/files/issues/2020-07-17/EditorImageMaxDimensions-...

Editor (dialog radios)

https://www.drupal.org/files/issues/2020-07-17/ImageDialogAlign-inline.png

Field UI

https://www.drupal.org/files/issues/2020-07-17/FieldStorageConfigEditFor...

Image (shows both items listed)

https://www.drupal.org/files/issues/2020-07-17/ImageItem-minmaxResolutio...

Locale (the filter button is in container-inline ,but has no effect. This is the same in HEAD)

https://www.drupal.org/files/issues/2020-07-17/Translate-FilterButton-no...

Path

https://www.drupal.org/files/issues/2020-07-17/PathFilterForm-inline.png

Search (SearchPageForm)

https://www.drupal.org/files/issues/2020-07-17/Search-keywords-inline.png

Search (SearchPageListBuilder)

https://www.drupal.org/files/issues/2020-07-17/SearchPageListBuilder-inl...

Workspaces

https://www.drupal.org/files/issues/2020-07-17/WorkspaceSwitcher-default...

Comment

https://www.drupal.org/files/issues/2020-07-17/Comment-inline.png

Dblog (the filter button is in container-inline ,but has no effect. This is the same in HEAD)

https://www.drupal.org/files/issues/2020-07-17/Dblog-FilterButton-nothin...

bnjmnm’s picture

3 of 4: Contributed modules that may be impacted
I used http://grep.xnddx.ru/ to find uses of container-inline and form--inline. If a module uses those classes in a way that is clearly covered by this patch, I did not include it in the list. I separated the remaining modules into two buckets.

The modules in the first list should probably be notified that their use of container-inline or form--inline may have unexpected impact in Claro. Those classes (particularly container-inline) were too powerful in their reach which led to frequent unwanted side effects. The inconvenience presented here will reduce larger ones in the future.

Modules that either have D9 support or have enough evidence of usage/recent activity to suggest a D9 version is likely to be available

(I'm aware the site metrics for a module are not particularly accurate, this is just used to see which modules comparatively appear to have higher usage)

uses container-inline

uses form--inline

No Drupal 9 support +minimal usage and no recent activity

container-inline

form--inline

bnjmnm’s picture

4 of 4: how to best proceed
Some concerns:

Inline form errors could stand to look a little better

I noticed errors weren't in the design so I shared some screnshots in Slack. @ckrina thought that they were largely fine, but the error message should be aligned with the corresponding input and not its label. I like this suggestion as well, but it would require some major refactoring. I think this would work best in a followup issue because
1) The alignment is no different in Seven, so this patch does not cause a regression even though it could be argued the alignment difference is more noticeable in Claro.
2) No new problems are introduced with the current scope, and this current scope is already quite complex due to the variety of ways .container-inline can be used.

The solution seems to include many bandages

The .container-inline class was a bit too powerful and had many unwanted side effects. Look at that +2 specificity determining the display of all child divs and labels

.container-inline div,
.container-inline label {
  display: inline-block;
}

It was applied in a variety of ways that makes it incredibly difficult to remove/change the class in preprocess functions, particularly if contrib is taken into account. The approach in patch #30 does a bit of edge-casing when a broader solution like #3059593: Provide API for inline containers is more ideal. I think the approach in this patch is a step towards the feasibility of #3059593 landing. The changes here expose the use cases that would need addressing, and the CSS here can be repurposed.

bnjmnm’s picture

Discussed this with @lauriii, and these changes should address the majority of the concerns in the previous four comments.

The contrib concerns in #32 are addressed as the expected .container-inline and .form--inline is now unchanged. There are already issues to address my primary concerns about those old issue, and it was pointed out that those concerns aren't quite as bad as I thought. This patch does add an alternative to the somewhat far-reaching .container-inline styling. A form can also add the class .form--inline-elements, which will inline-style every item in the form without the many side effects of the far-reaching .container-inline style on an entire form. An example of this in use was added to the form in the test module.

The concern about the bandage-ish approach in #33 is also resolved for the reasons stated above.

Screenshots

Test Form

This is labeled, but the first half are items individually wrapped in .container-inline the second half is a group of items wrapped in a container with the .form--inline-elements class.
https://www.drupal.org/files/issues/2020-07-28/inline-form-RTL-narrow.png
https://www.drupal.org/files/issues/2020-07-28/inline-form-RTL-wide.png
https://www.drupal.org/files/issues/2020-07-28/inline-form-narrow.png
https://www.drupal.org/files/issues/2020-07-28/inline-form-wide.png

IE11

https://www.drupal.org/files/issues/2020-07-28/form--inline-elements-add...
https://www.drupal.org/files/issues/2020-07-28/container-inline-plus-for...
https://www.drupal.org/files/issues/2020-07-28/container-inline-IE11-mob...
https://www.drupal.org/files/issues/2020-07-28/form--inline-elements-IE1...
https://www.drupal.org/files/issues/2020-07-28/container-inline-IE11-wid...

Other uses

Action

https://www.drupal.org/files/issues/2020-07-28/Actions.png

Comment

https://www.drupal.org/files/issues/2020-07-28/Comment_.png

Content Moderation

https://www.drupal.org/files/issues/2020-07-28/content-moderation.png

Dblog

https://www.drupal.org/files/issues/2020-07-28/Dblog-same_as_HEAD.png

Editor

https://www.drupal.org/files/issues/2020-07-28/EditorImageDialog.png
https://www.drupal.org/files/issues/2020-07-28/maximum-dimensions-editor...

Field UI

https://www.drupal.org/files/issues/2020-07-28/AddField.png

Image

https://www.drupal.org/files/issues/2020-07-28/ImageItem.png

Locale

https://www.drupal.org/files/issues/2020-07-28/Locale_same_as_HEAD.png

Node

https://www.drupal.org/files/issues/2020-07-28/NodePreview_same_as_HEAD.png

Path

https://www.drupal.org/files/issues/2020-07-28/PathFilterForm.png

Search

https://www.drupal.org/files/issues/2020-07-28/SearchPageForm.png
https://www.drupal.org/files/issues/2020-07-28/SearchPageListBuilder.png

Search Block + Workspaces Block

https://www.drupal.org/files/issues/2020-07-28/SearchBlock_WorkspacesBlo...

lauriii’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll
bnjmnm’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
StatusFileSize
new33.78 KB

Rerolled

lauriii’s picture

  1. +++ b/core/themes/claro/css/components/container-inline.pcss.css
    @@ -3,13 +3,244 @@
    +.container-inline .form-item:not(:last-child) {
    +  margin-right: var(--space-m); /* LTR */
    +}
    

    I think it would make sense to move some of these styles from these files to the specific components. While reviewing this, I went back and forth on many rules to check what are the styles that are being overridden.

  2. +++ b/core/themes/claro/css/components/container-inline.pcss.css
    @@ -3,13 +3,244 @@
    +  margin-right: 0; /* LTR */
    

    Unnecessary /* LTR */ comment.

  3. +++ b/core/themes/claro/css/components/container-inline.pcss.css
    @@ -3,13 +3,244 @@
    +  margin-top: -0.125em; /* 2px */
    +  margin-bottom: -0.125em;
    ...
    +  margin-top: 0.125em;
    ...
    +  margin-bottom: 0.125em;
    

    I know these are just copy and paste from the pre-existing styles but should we at least convert these to using rem units?

katherined’s picture

StatusFileSize
new39.09 KB
new33.49 KB

Addressing #37:

1. I've reorganized in a way that made sense to me, so hopefully it's not just me. :)

2. Got it, and then moved it.

3. Got these, and also moved them.

lauriii’s picture

Thank you for reorganizing the CSS rules @katherined!

--- /dev/null
+++ b/core/modules/system/tests/modules/inline_form_element_test/inline_form_element_test.info.yml

Should we remove the test module from here since it's not being used anywhere?

katherined’s picture

StatusFileSize
new30.73 KB

Ah, good idea. Test removed, and patch rerolled.

Status: Needs review » Needs work

The last submitted patch, 40: 3029675-40-REROLL.patch, failed testing. View results

bnjmnm’s picture

Status: Needs work » Needs review

Test failure was an unrelated test infamous for intermittently failing

lauriii’s picture

Issue summary: View changes
Status: Needs review » Needs work
Issue tags: +Needs followup
StatusFileSize
new12.69 KB
  1. +++ b/core/themes/claro/css/components/inline-form.pcss.css
    @@ -0,0 +1,51 @@
    +.form--inline .form-item--separator {
    +  display: flex;
    +  align-items: center;
    +  /* Top margin is the label line-height + label top and bottom margins */
    +  margin-top: calc(1.125rem + var(--space-xs));
    +  margin-right: var(--space-s); /* LTR */
    +  white-space: nowrap;
    +}
    +[dir="rtl"] .form--inline .form-item--separator {
    +  margin-right: 0;
    +  margin-left: var(--space-s);
    +}
    

    Should we move this to Field UI specific file since this is not a form element type but specific form item in Field UI? I think #3082672: Form prefix/suffix redesign in Claro is adding more generic separator styles.


  2. I think the separator would look better if it was centered in relation to the form elements, not label + form element.
  3. We should open follow-up for aligning the description and error messages with the form element.
  4. +++ b/core/themes/claro/css/components/container-inline.pcss.css
    @@ -3,13 +3,45 @@
    +.form--inline-elements .form-item {
    

    .form--inline-elements looks like it would be applying the BEM modifier pattern, but I don't think we have form block element?

  5. +++ b/core/themes/claro/css/components/container-inline.css
    @@ -10,15 +10,94 @@
    +.form--inline-elements .form-item {
    

    Is this utility class something that should be supported outside of Claro?

bnjmnm’s picture

Status: Needs work » Needs review
Issue tags: -Needs followup
StatusFileSize
new16.08 KB
new32.83 KB

#43.1 Good call, moved these styles to field UI and opened an issue suggesting the same be done to all the instances outside of Claro #3169719: Move .form-inline .form-item-separator rules from inline-form css to field UI css
#43.2 That styling is already present in #3082672: Form prefix/suffix redesign in Claro, but it's not clear which will be added first so it'll go here as well and reroll as needed.
#43.3 Follow-up for aligning the description and error messages with the form element: #3169723: [PP-1] description and (inline)errors in inline forms should align with their element
#43.4

.form--inline-elements looks like it would be applying the BEM modifier pattern, but I don't think we have form block element?

Shoot, that makes the class a little less self-explanatory, but it's true it should not follow the modifier pattern. Changed that here and will need to do that in #3083256: Create smaller variations for form elements as well.
#43.5

Is this utility class something that should be supported outside of Claro?

I'm sure that could be helpful throughout core. I created an issue for it: #3169734: [PP-1] Implement something similar to Claro's form-elements-inline class in all of core

bnjmnm’s picture

It may help to have a summary of the BEM issues being discussed in #43 and #44:
This issue and #3083256: Create smaller variations for form elements deal with creating form element variants. Currently, form elements receive variant styles by adding a class directly to the form element render array. The currently patches in this issue and #3083256: Create smaller variations for form elements offer a different way to provide variant styling to form elements: add a single wrapper class to the form, which will style every element within.

In the case of this issue, this would make is possible to present every element within a form as inline by adding the single .form-elements-inline class to the form. Similarly , issue #3083256 proposes adding a wrapper class so all elements within a form can be styled as their small/extrasmall variants.
At the moment I feel like the benefits of this approach outweigh the drawbacks of deviating from BEM. Were this approved for core, I'd still want to specifically document why the exception was made and why it should not be seen as an overall loosening of a standard that has proven beneficial.

Here are some of the specific reasons I support the approach, perhaps there are specific holes in the logic.
Prevents unwieldy form alters
Without the wrapper classes, providing variant styles to every element in a form means explicitly adding a class (and in the case of inline form elements, some element types require to to be added a #prefix/#suffix or #theme_wrapper). This results in some very busy form_alters to accomplish what a single wrapper class could, and I'm skeptical of it being possible to address this through any sort of helper function that recursively traverses the array to add these classes, due to the application of these classes differing depending on element type and other contexts that are less predictable.

Contrib modules aren't expected to do Claro-specific class additions.
Many contrib modules add elements to existing forms. Without the variant-facilitating wrapper class, contrib modules will need to add Claro-specific classes to every added form element. With the wrapper class, the added elements integrate with the rest of the form automatically. Contrib maintainers don't need to devote dev time to adding Claro classes, and there's less risk of poor sentiment towards Claro because contrib modules don't look right in it.

There is a greater need for form element variants in Claro, which increases the need for an easy way to apply them

Claro's form elements are very large, which benefits the user in many ways. There are contexts, however, where this large size is detrimental, such as when they appear in a dialog or views filters. There's already agreement that in contexts such as these, it's useful to use smaller variants within the entire form. Making this possible via the addition of a single class seems far preferable than the form_alter headaches mentioned above.

This provides an easy way to have context-dependent form element variants
For example, a form can easily use default styling in a page, and smaller variants inside a dialog.

Some elements are not easily alterable
In cases like views, where there are form elements that are not inside an actual form array, it's not always straightforward (or possible?) to add classes to specific elements. While it's true that theoretically all of these should be alterable and issues could be filed for each need, it's a plate of vegetables that are at risk of spoiling before they are fully eaten. A variant-facilitaing wrapper class makes this a non-concern.

Additional thoughts
Seeing a form element as part of a form vs being a discrete block is likely the way many of us conceptualize things already. While BEM effectively prevents unpredictable behavior, in the case of form elements, I don't feel like it would be particularly jarring for a form element to assume the variant state of its constituent elements vs retaining it's block-level styles. I think that core's BEM policy could define an exception specific to forms and their elements.

I also think that these wrapper classes should only exist if there are block-level versions of them as well. It should always be possible to style a variant on a per-element basis.

katherined’s picture

+1 to the thorough and convincing explanation in #45.

tanubansal’s picture

Tested #44 on 9.1
This can be moved to RTBC

lauriii’s picture

Discussed with @alexpott. Ideally, this would part of Form API. However, making changes to Form API is difficult so we support the idea of having an intermediate solution prior to that. In particular, the argument about contrib extensibility sounds important.

We thought that the next steps could be:

  1. Go ahead here and #3083256: Create smaller variations for form elements but add some documentation to Claro to state where and why we deviate.
  2. File a follow to address the issue in Form API.
  3. FIle another follow-up to use Form API changes in Claro if necessary.
katherined’s picture

bnjmnm’s picture

StatusFileSize
new10.36 KB
new38.84 KB

This takes care of the remaining item in #48

but add some documentation to Claro to state where and why we deviate.
katherined’s picture

+++ b/core/themes/claro/css/components/container-inline.css
@@ -8,6 +8,18 @@
+ * Note that most rules with with .container-inline selectors are accompanied by

tiny nit: repeated "with" in comments with this opening line

I don't see anything else, so I think this is ready to RTBC otherwise.

bnjmnm’s picture

StatusFileSize
new39.67 KB
new25.46 KB

This addresses #52 and changed the wrapper class .form-elements-inline to .claro-form-elements-inline so the prefix makes it clear this is provided by Claro and not all of core.

bnjmnm’s picture

StatusFileSize
new34.67 KB
bnjmnm’s picture

StatusFileSize
new36.73 KB

Previous patch was missing a few compiled files

katherined’s picture

Status: Needs review » Reviewed & tested by the community

The changes look right to me. Marking RTBC.

lauriii’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Needs work
StatusFileSize
new32.49 KB
new20.78 KB
  1. +++ /dev/null
    @@ -1,22 +0,0 @@
    -.container-inline label:after,
    -.container-inline .label:after {
    -  content: ":";
    -}
    

    Wondering how the design system expects this to be rendered; some of the examples use colon and some are not using it. If we remove this, I don't think we use colon anywhere.

  2. +++ b/core/themes/claro/css/components/form--checkbox-radio--ie.pcss.css
    @@ -137,3 +137,57 @@
    + * Note that most rules with .container-inline selectors are accompanied by
    + * similar rules that use the selector .claro-form-elements-inline.
    
    +++ b/core/themes/claro/css/components/form--checkbox-radio.pcss.css
    @@ -47,6 +47,94 @@
    + * Note that most rules with .container-inline selectors are accompanied by
    + * similar rules that use the selector .claro-form-elements-inline.
    
    +++ b/core/themes/claro/css/components/form.pcss.css
    @@ -1,6 +1,21 @@
    + * Note that most rules with .container-inline selectors are accompanied by
    + * similar rules that use the selector .claro-form-elements-inline.
    ...
    + * Note that most rules with .container-inline selectors are accompanied by
    + * similar rules that use the selector .claro-form-elements-inline.
    

    Instead of duplicating this in multiple files, let's add @see referencing container-inline.pcss.css.

  3. +++ b/core/themes/claro/css/components/form--checkbox-radio--ie.pcss.css
    @@ -137,3 +137,57 @@
    +  .container-inline .form-boolean-group::after,
    +  .claro-form-elements-inline .form-boolean-group::after {
    +    display: table;
    +    clear: both;
    +    content: "";
    +  }
    

    Let's add @see reference to clearfix.module.css here.

  4. +++ b/core/themes/claro/css/components/form--checkbox-radio.css
    @@ -59,6 +59,103 @@
    +.container-inline .form-type--checkbox .form-item__label {
    +  position: relative;
    +  bottom: 1px;
    +}
    ...
    +.container-inline .form-type--radio .form-item__label {
    +  position: relative;
    +  bottom: 2px;
    +}
    

    Do we really need these? Based on quick visual test, it almost look like these are centered more accurately without these.

  5. +++ b/core/themes/claro/css/components/form--checkbox-radio.css
    @@ -59,6 +59,103 @@
    +  white-space: nowrap;
    

    I guess this is needed for better consistency in the designs. However, I'n not certain if we should do that given that this could make text invisible on small screens:

  6. +++ b/core/themes/claro/css/components/form.pcss.css
    @@ -56,6 +79,28 @@ tr .form-item,
    +  margin-right: var(--space-m); /* LTR */
    

    It seems like there's some additional space on top of this margin which should be taken into account on this. Right now the space looks larger than on designs:

bnjmnm’s picture

Status: Needs work » Needs review
StatusFileSize
new150.36 KB
new13.41 KB
new33.65 KB

#56.1

Wondering how the design system expects this to be rendered; some of the examples use colon and some are not using it. If we remove this, I don't think we use colon anywhere.

Right, I made a judgement call here that ought to have been documented in the issue. The Figma designs state
HAS LABEL-COLON: textfield and radios
NO LABEL-COLON: textarea, select, machine name, checkboxes

I decided to remove the colon entirely (knowing it may lead to discussion) for the following reasons:

  • With the Claro designs, there would be an inconsistency on forms with multiple inline elements. A textfield with a colon next to a select without would seem odd enless the label wording of one was clearly more colon-accommodating than the other - and were that the case it would be best if the colon was part of the label. This led me to believe the colons in the comps were envisioned as part of the label name and not appended to it via CSS.
  • The theme formerly known as Classy has colons on every type of field other than radio and checkbox. Although I prefer removing colons entirely (more on this later), the deciding factor appears to be fieldset and non-fieldset input types. With the Claro designs, the distinction is less clear. This elevated my suspicion that the colons in the comps were envisioned as part of the label name and not appended to it via CSS.
  • The Figma examples for checkbox highlight another issue with appending colons. The form label there is "Which ones apply to you?". Form labels phrased as a question are not uncommon, and adding a colon after the question mark wouldn't look right to me.

#56.2

Instead of duplicating this in multiple files, let's add @see referencing container-inline.pcss.css.

Yep that's better
#56.3 Added the @see

#56.4 These definitely aren't needed. Were likely a part of an earlier iteration and missed as they only target .container-inline and tests may have only been done with the wrapper class.

#56.5 Found a solution that works pretty good.

#56.6 Looks like that was happening with .container-inline but not .claro-form-elements-inline. Setting display: flex on .form-item, as it already does with .claro-form-elements-inline, takes care of it.

katherined’s picture

StatusFileSize
new23.78 KB

Re #56.4, it looks to me like these are needed, as the elements with the container-inline class look misaligned without. Maybe a comment with these would help?

The rest looks good to me, and the colon explanation works for me, unless it warrants further discussion.

bnjmnm’s picture

StatusFileSize
new3.44 KB
new33.94 KB

Looks like there was a style specific to the wrapper class that can also be used by container-inline and it fixes the issue repported in #58. This patch also adds a wrapper class equivalent to a container-inline style that was missing it.

katherined’s picture

Status: Needs review » Needs work

The issue in #58 looks resolved, thanks! And good catch on adding the wrapper class.

The below looks like it could use the same treatment (unless there is a reason not to?):

+++ b/core/themes/claro/css/components/form.pcss.css
@@ -31,6 +39,14 @@ tr .form-item,
+.container-inline .form-item:not(:last-child) {
+  margin-right: var(--space-m); /* LTR */
+}
+[dir="rtl"] .container-inline .form-item:not(:last-child) {
+  margin-right: 0;
+  margin-left: var(--space-m);
+}
+++ b/core/themes/claro/css/components/form.pcss.css
@@ -140,6 +192,13 @@ tr .form-item,
+.container-inline .form-actions .button,
+.container-inline .form-actions,
+.container-inline.form-actions {
+  margin-top: 0;
+  margin-bottom: 0;
+}

Pending the above, I think it's ready to go back to RTBC.

bnjmnm’s picture

Status: Needs work » Needs review
StatusFileSize
new13.54 KB
new5.78 KB
new34.73 KB

#60 isn't needed as those styles are specific to a use of .container-inline that isn't covered by the wrapper class. This is for displaying the elements of a form next to each other instead of stacked, such as the usage in admin/config/system/actions

This did lead to me discovering that this use of container-inline was broken by the fix for #56.6, which replaced the inline-block styling for .form-item with flex. This has been refactored to more specific targeting, so the margins should now be consistent regardless of the approach used, and container-inline can still be used to display elements next to each other.

katherined’s picture

Status: Needs review » Reviewed & tested by the community

This looks like it works! The spacing now appears consistent between .container-inline and the wrapper class.

I have no other issues to report, so marking as RTBC.

ckrina’s picture

I can see how the different examples led to confusion about the colon: we considered it more a content decision rather than a forced element on any specific type of field.
We don't have any reason to force the colon on a visual design perspective, so I'd +1 @bnjmnm decision about deleting them completely.

lauriii’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Needs work
StatusFileSize
new30.96 KB


Seems like form elements and buttons are not positioned correctly inline if one of the elements have description.

bnjmnm’s picture

Status: Needs work » Needs review
StatusFileSize
new34.82 KB
new884 bytes

Great catch, this should address #64

lauriii’s picture

Issue summary: View changes
Status: Needs review » Needs work
StatusFileSize
new29.83 KB

I don't think this is quite right either. The form elements are now aligned correctly but the button is now always misaligned.

bnjmnm’s picture

Status: Needs work » Needs review
StatusFileSize
new3.9 KB
new36.57 KB
new80.24 KB

This seems to take care of it based on reviewing the usages in #6. Here are screenshots of the usages impacted by these changes.

katherined’s picture

Status: Needs review » Reviewed & tested by the community

I manually checked the affected forms, and all look good. I see nothing else in the code to comment on, so moving back to RTBC.

lauriii’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Needs review
StatusFileSize
new45.29 KB
new36.38 KB

Is the date time form element supposed to look like this with the .claro-form-elements-inline?

The form element looks like this with .container-inline.

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.

bnjmnm’s picture

StatusFileSize
new35.75 KB

This needed a reroll.

Re #69 The datetime element should look the same with .claro-form-elements-inline and .container-inline, and for me it is looking the same. For that particular element, it would even look like that without either of those classes, as datetime-form.html.twig adds an entirely different class that results in the date and time being next to each other

<div{{ attributes.addClass('form-items-inline') }}>
  {{ content }}
</div>

Plus
.form-items-inline > .form-item

If I get steps on how to reproduce the stacking in #69 I'll address whatever is causing it.

ckrina’s picture

I think this could use a reroll (or better, open a Merge Request) and update it. Some clues here: @lauri mentioned a test seems to be failing.

ckrina’s picture

Issue tags: +Needs reroll
joegraduate’s picture

Assigned: Unassigned » joegraduate
Status: Needs review » Needs work

I'm working on a re-roll (via a merge request).

joegraduate’s picture

Status: Needs work » Needs review

Re-rolled #67 as a MR. Here is the plain diff that can be used as a patch, if needed: https://git.drupalcode.org/project/drupal/-/merge_requests/559.diff

Tugboat live preview:
https://mr559-58yfpbqxizvkv518ouxtbz7fzteksjbh.tugboat.qa/

joegraduate’s picture

Assigned: joegraduate » Unassigned
joegraduate’s picture

Issue tags: -Needs reroll
joegraduate’s picture

Assigned: Unassigned » joegraduate
Status: Needs review » Needs work

Looking into this test failure:

_________________________________________________

TEST FAILURE:  1 assertions failed, 286 passed (2m 6s)

 ✖ claroAutocompleteTest
 – Test Claro autocomplete (9.398s)
   Expected element <.js-form-item-autocomplete-3 [data-drupal-selector="autocomplete-message"]> to not be visible - expected "not visible" but got: "visible" (5128ms)
       at Object.Test Claro autocomplete (/var/www/html/core/tests/Drupal/Nightwatch/Tests/claroAutocompleteTest.js:45:20)
       at processTicksAndRejections (internal/process/task_queues.js:97:5)

error Command failed with exit code 5.
joegraduate’s picture

Status: Needs work » Needs review

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.

volkswagenchick’s picture

Issue tags: +Europe2021

Adding tag for DrupalCon Europe2021. Thanks

joegraduate’s picture

Assigned: joegraduate » Unassigned
ckrina’s picture

Version: 9.3.x-dev » 9.4.x-dev
Status: Needs review » Needs work
Issue tags: +Needs reroll

This needs a reroll.

kostyashupenko made their first commit to this issue’s fork.

kostyashupenko’s picture

Issue tags: -Needs reroll

Rebase is done

feuerwagen’s picture

Status: Needs work » Needs review

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
StatusFileSize
new149 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.

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.

tonibarbera’s picture

Status: Needs work » Needs review
StatusFileSize
new28.63 KB
new1.52 KB

Rerolled the MR for Drupal 10.1.5 and attached interdiff.

_utsavsharma’s picture

StatusFileSize
new28.14 KB
new49.23 KB

Fixed failures in #92.

finnsky’s picture

Status: Needs review » Needs work

RE: #93

Thank you for work!

One point:
Really not sure. Why all css custom properties listed in few files?
Maybe add dependency to file which contains them?

gauravvvv’s picture

Status: Needs work » Needs review
StatusFileSize
new26.92 KB
new7.37 KB

We have css/base/variables.css already available in global-styling. There is no need to import it in any particular file. I have removed the import. Attached interdiff and patch for same.

needs-review-queue-bot’s picture

Status: Needs review » Needs work
StatusFileSize
new85 bytes

The Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".

This does not mean that the patch needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.

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

omsingh89’s picture

Could we have this patch https://www.drupal.org/files/issues/2023-10-25/3029675-93.patch for Drupal core 10.2.1 version please? Thanks in Advance.

akalam’s picture

StatusFileSize
new26.31 KB

Rerolled #93 against core 11.x

akalam’s picture

StatusFileSize
new26.39 KB

This one is for 10.2.5

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.