Move theme toolbar CSS to the Seven theme

Created on 26 July 2015, over 9 years ago
Updated 8 May 2023, over 1 year ago

Problem/Motivation

See discussion in: #2195695: Admin UIs on the front-end are difficult to theme

The toolbar is an administrative UI component that appears on the frontend of sites. It's important that it is consistent with the Seven style guide and that other admin themes can control the look and feel.

Proposed resolution

Our CSS standards define module CSS as: “the minimal styles needed to get the module's functionality working.”
Theme CSS is defined as: “extra styles to make the module's functionality aesthetically pleasing. ”
Move the theme styling into the Seven theme
Add a library alter hook to load the admin theme CSS. Example: 🐛 Node preview bar has usability issues, is difficult to use on mobile, not usable without Bartik, and does not align with the Seven style guide and current toolbar designs Postponed: needs info

Remaining tasks

Write the patch.
Test.

User interface changes

None

API changes

None

Data model changes

None

📌 Task
Status

Postponed: needs info

Version

9.5

Component
Toolbar 

Last updated about 1 month ago

  • Maintained by
  • 🇫🇷France @nod_
Created by

🇬🇧United Kingdom lewisnyman Nomadic

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

  • CSS

    It involves the content or handling of Cascading Style Sheets.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States bnjmnm Ann Arbor, MI

    Neds issue summary as

    • This one refers to Seven, a now-removed theme
    • There's mention of "Add a library alter hook to load the admin theme CSS". The claro theme now styles the toolbar on the admin & default themes. We should check if that change meets that specific need #3070493: Introduce a mechanism to provide an alternate Claro design for the toolbar in the future
    • Part of the justification to doing this is adhering to as-documented CSS standards Our CSS standards define module CSS as: “the minimal styles needed to get the module's functionality working.”
      Theme CSS is defined as: “extra styles to make the module's functionality aesthetically pleasing. ”. Given this issue is 8+ years old, we should establish that this is still worth pursuing even if it might disrupt the way many sites are accustomed to.
  • Status changed to Closed: works as designed about 1 month ago
  • 🇳🇿New Zealand quietone

    It has been two years since more information was asked for about this issue and the last work here was 9 years ago. Since justification for keeping this open has not been given I am closing this.

    Thanks to everyone who helped here.

Production build 0.71.5 2024