backdrop-contrib / gin

Admin theme with a strong focus on improving the Editorial Experience.
https://backdropcms.org/project/gin
GNU General Public License v2.0
5 stars 2 forks source link

Inline message styling #42

Closed laryn closed 1 year ago

laryn commented 1 year ago

There are some inline messages in various places (such as the dirty form warning and notification on the dashboard) that still have default styling:

image

laryn commented 1 year ago

It looks like there are places where messages are manually built, so we probably need to account for the Backdrop structure and classes. e.g.

    if (empty($updates)) {
      $panel['up_to_date'] = array(
        '#type' => 'container',
        '#attributes' => array('class' => array('messages', 'status')),
      );
      $panel['up_to_date']['message'] = array(
        '#markup' => t('Your site is up to date.'),
      );
    }

image

laryn commented 1 year ago

It's a little duplicative but it's the best way I could think of at the moment to account for both structures:

image