Problem/Motivation

user.admin.css contains only css thats pure styling for the permission & account setting admin pages, that should be moved to Claro
None of the css is functional, - its pure styling - So no reason to have it hiding away down in a module folder

.permissions .module {
  font-weight: bold;
}

.permissions .permission {
  padding-inline-start: 1.5em;
}

/* Account settings */

.user-admin-settings .details-description {
  padding-block-end: 0.5em;
  font-size: 0.85em;
}

Proposed resolution

Remaining tasks

delete user.admin.css
copy css into Claro theme

User interface changes

none

API changes

Issue fork drupal-2491149

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:

Comments

skippednote’s picture

Status: Active » Needs review
StatusFileSize
new1.5 KB

Move files to Seven theme as recommended by Morten

thpoul’s picture

Status: Needs review » Reviewed & tested by the community

Does what the Remaining tasks ask by deleting core/modules/user/css/user.admin.css and adding the related css code to the core/themes/seven/css/components/accounts.css and core/themes/seven/css/components/permissions.css instead.

alexpott’s picture

Status: Reviewed & tested by the community » Needs work

@thpoul you can not have manually tested this since there is nowhere the new css files are being added in and the user module is still trying to add the library in...

drupal.user.admin:
  version: VERSION
  css:
    theme:
      css/user.admin.css: {}

in core/modules/user/user.libraries.yml

alexpott’s picture

Issue tags: +Needs screenshots
manjit.singh’s picture

Assigned: Unassigned » manjit.singh
manjit.singh’s picture

Assigned: manjit.singh » Unassigned
Status: Needs work » Needs review
StatusFileSize
new2.71 KB

Add new css files in seven.libraries.yml and removed from user.libraries.yml. Please review.

lewisnyman’s picture

Status: Needs review » Needs work

Almost there! I noticed we are still trying to attach the old library in AccountSettingsForm.php:
$form['#attached']['library'][] = 'user/drupal.user.admin';

It's also still mentioned in user.libraries.yml:

drupal.user.permissions:
  version: VERSION
  js:
    user.permissions.js: {}
  dependencies:
    - core/jquery
    - core/jquery.once
    - core/drupal
    - core/drupalSettings
    - user/drupal.user.admin

Considering how small this code is, I don't mind loading it globally. Let's just remove these references and tidy up the file comments:

  1. +++ b/core/themes/seven/css/components/accounts.css
    @@ -0,0 +1,13 @@
    + * Seven styles for the Account.
    + */
    +
    +
    +/**
    + * Settings page.
    + */
    

    Can we combine these two comments so the @file comment reads: "Seven styles for the account settings page."

  2. +++ b/core/themes/seven/css/components/permissions.css
    @@ -0,0 +1,15 @@
    + * Seven styles for the Permissions.
    

    Can this be: "Seven style for permissions page." instead?

Thanks.

manjit.singh’s picture

Status: Needs work » Needs review
StatusFileSize
new3.28 KB
new1.45 KB

@lewis removed the attached library from AccountSettingsForm.php:. Please verify.

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

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should 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.

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

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should 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.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should 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.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should 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.

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

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should 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.

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

Drupal 8.5.6 was released on August 1, 2018 and is the final bugfix release for the Drupal 8.5.x series. Drupal 8.5.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.6.0 on September 5, 2018. (Drupal 8.6.0-rc1 is available for testing.)

Bug reports should be targeted against the 8.6.x-dev branch from now on, and new development or disruptive changes should 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.

sim_1’s picture

I couldn't apply this patch as is, so I remade it and took a screenshot of the permissions page. The styles seem to be applying correctly on the permissions page, however I don't see anywhere where the .user-admin-settings .details-description is used anymore.

I'm still practicing making/remaking patches, so feel free to redirect my efforts if this isn't the way to go.

avpaderno’s picture

Version: 8.6.x-dev » 8.9.x-dev
Issue tags: -Needs screenshots +Needs screenshot
tim.plunkett’s picture

Issue tags: -, -Needs screenshot +Needs screenshots

Fixing tag

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.

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

gauravvvv’s picture

What are the next steps. As seven is no longer part of 10.1.x. I have added Needs issue summary update tag.

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.

gauravvvv’s picture

Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs title update

Still needs issue summary updates and title

Did not review.

gauravvvv’s picture

Title: move user.admin.css into seven where it belongs » move user.admin.css into claro where it belongs
Issue summary: View changes
Status: Needs work » Needs review
Issue tags: -Seven, -Needs issue summary update, -Needs title update

Updated issue summary and title

smustgrave’s picture

Status: Needs review » Needs work

Left a comment on the MR.

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

vinmayiswamy’s picture

Hi,
I have added deprecation to the user.admin.css library following this guide: How to Deprecate.
I also created a Change Record for the same.

Kindly review the changes and please let me know if any further adjustments are needed. I appreciate any feedback or suggestions for improvements.

Thanks!

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

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.

quietone’s picture

Title: move user.admin.css into claro where it belongs » move user.admin.css into Default Admin where it belongs