The site slogan doesn't show with Olivero

Created on 13 December 2020, about 4 years ago
Updated 20 February 2023, about 2 years ago

Problem/Motivation

With Olivero, if a slogan is set and the branding block is configured to show the slogan, the slogan should be displayed on the branding block. But it's not.

Steps to reproduce

See the attached test.

Proposed resolution

Remaining tasks

write tests

User interface changes

API changes

Data model changes

Release notes snippet

šŸ› Bug report
Status

Needs work

Version

10.1 āœØ

Component
OliveroĀ  ā†’

Last updated 10 days ago

Created by

šŸ‡·šŸ‡“Romania claudiu.cristea Arad šŸ‡·šŸ‡“

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • 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

Merge Requests

Comments & Activities

Not all content is available!

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

  • šŸ‡ŗšŸ‡øUnited States smustgrave

    This issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request ā†’ as a guide.

    This will need a test case to show the issue.

    Issue summary should be updated with proposed solution, seen several different attempts but what is going to be the path forward.

    Screenshots should be added to the issue summary.

  • šŸ‡®šŸ‡³India rinku jacob 13 Kerala

    H i @smustgrave ,Issue summary updated. Please review.

  • Status changed to Needs review almost 2 years ago
  • Status changed to Needs work almost 2 years ago
  • šŸ‡ŗšŸ‡øUnited States smustgrave

    Seems better! Think just need to determine which of the current solutions to move forward with for the tests

  • šŸ‡®šŸ‡³India rinku jacob 13 Kerala

    Hi @smustgrave, when we use the logo supplied by the theme the slogans accurately displayed.

    But when we use a custom logo(especially larger size custom logo) slogan was show as non-aligned. Need to work on this.

  • šŸ‡¹šŸ‡­Thailand jeyro

    But shouldn't the slogan be just below the site name?

    If there is a logo, or if there isn't a logo, the slogan should generally be below the site name (not the logo). Maybe I'm wrong, but I thought this was kind of standard procedure...

  • šŸ‡©šŸ‡°Denmark ressa Copenhagen

    +1 for adding Slogan in Olivero.

    To help keep this issue moving, maybe someone can update "Remaining tasks" in Issue Summary and outline which solutions are under consideration?

  • šŸ‡®šŸ‡³India ravi kant Jaipur

    Issue solving for me when applying patch#54 and enabling the slogan from the "Site branding" block.

  • šŸ‡ŗšŸ‡øUnited States gintass

    @jeyro I agree, the slogan should be below the title and next to the logo, therefore I would change the code in this file /olivero/templates/block/block--system-branding-block.html.twig, so that 'site_slogan' is inside the 'site_name':

        {% if site_name %}
          <div class="site-branding__text">
            <div class="site-branding__name">
              <a href="{{ path('<front>') }}" title="{{ 'Home'|t }}" rel="home">{{ site_name }}</a>
            </div>
                {% if site_slogan %}
                  <div class="site-branding__slogan">{{ site_slogan }}</div>
                {% endif %}
          </div>
        {% endif %}
      </div>
    {% endblock %}
    
  • šŸ‡¹šŸ‡­Thailand jeyro

    @gintass That worked for me, perfectly, much thanks!

    For 10.1.1 updated patch #54 manually. Added contribution of @gintass, added a font-size: 1rem; and a font-style: italic; Works fine.

    Can someone finalize this so that it gets into core?

  • šŸ‡¬šŸ‡§United Kingdom freelylw

    problem still in the latest 10.1.2, please advise the patch #54 is for the olivero or for the core ?

  • šŸ‡®šŸ‡³India hamid.ali

    I have verified patch#54 on Drupal 10.1.x-dev version. The patch was applied successfully and looks and works fine. But there should be a cap on the length of characters for the slogan. Since I tried to add as much length as I could for the slogan and after saving and checking the same it is breaking the layout into more the one line and also doesn't look good from the UI perspective. I am adding both the small title and large title SS.

  • Just my thoughts on this - Site branding Block title which comes in a grey colour that is not completely visible. From a design perspective, it should be matched with the standard design which we are following for this theme.

  • šŸ‡¦šŸ‡ŗAustralia kattekrab

    I just spun up a very vanilla instance of Drupal with the lovely new Olivero theme enabled as default!
    Happy to find my rusty Drupal skillz got me all the way until this bug.

    I thought I was going mad about why I had enabled site slogan, but it just WOULD NOT display.

    So I turned to a search engine and found this 3 year old bug.

    I haven't through read the whole thread, or checked to see if the issue summary is up to date or not, but I can 100% confirm it was really frustrating to enable a feature and not be able to figure out why it doesn't work :)

    Looks like there's working, tested patches here, so let's go with what we have here, and create a new issue for improvements like cap on length.

  • šŸ‡ØšŸ‡¦Canada SKAUGHT

    (: this is a feature of EVERY theme, certainly Olivero (the current core theme) should work as expected.

  • Status changed to Needs review 10 months ago
  • šŸ‡®šŸ‡³India mukesh-kumar3 Dharmshala

    Slogan not displayed in the site branding block issue solving for me when applying patch#54 and enabling the slogan from the "Site branding" block. in drupal 10.1.x and in 10.2.x.

  • Status changed to Needs work 10 months ago
  • šŸ‡ŗšŸ‡øUnited States smustgrave

    Still will need test coverage.

  • First commit to issue fork.
  • šŸ‡«šŸ‡®Finland YevKo Espoo

    YevKo ā†’ changed the visibility of the branch 11.x to hidden.

  • Pipeline finished with Failed
    10 months ago
    Total: 173s
    #158233
  • Pipeline finished with Success
    10 months ago
    Total: 502s
    #158246
  • šŸ‡«šŸ‡®Finland YevKo Espoo

    Hi,

    https://git.drupalcode.org/project/drupal/-/merge_requests/7792

    I have done a re-roll of the existing fork to 11.x first and then applied changes mentioned in this issue:

    • Slogan has been moved inside the 'site-branding__text' container, placed below the site name with the small gutter between. This setup works well with any type of logo, or without the logo.
    • Color of the slogan is the same as of the site name (white). The issue with the text color against grey or white backgrounds is reported separately https://www.drupal.org/project/drupal/issues/3443881 šŸ› Text color in the header does not adapt to the header background color Active

    Screenshots in different setups:




  • Status changed to Needs review 10 months ago
  • šŸ‡«šŸ‡®Finland YevKo Espoo
  • Pipeline finished with Running
    10 months ago
    #158293
  • Status changed to RTBC 10 months ago
  • Status changed to Needs work 10 months ago
  • šŸ‡¬šŸ‡§United Kingdom alexpott šŸ‡ŖšŸ‡ŗšŸŒ

    I think we should move the test to \Drupal\FunctionalTests\Theme\OliveroTest - also I think we should have a +1 on the CSS / design elements from an Olivero maintainer. Will ping in Slack.

  • Pipeline finished with Canceled
    10 months ago
    #159486
  • Pipeline finished with Failed
    10 months ago
    #159488
  • Pipeline finished with Failed
    10 months ago
    #159498
  • Pipeline finished with Success
    10 months ago
    #159510
  • Status changed to Needs review 10 months ago
  • šŸ‡·šŸ‡ŗRussia kostyashupenko Omsk

    I'm gonna mark it as Needs review since i've inserted few modifications

  • šŸ‡ŗšŸ‡øUnited States smustgrave

    smustgrave ā†’ changed the visibility of the branch 3188136-the-site-slogan to hidden.

  • šŸ‡ŗšŸ‡øUnited States smustgrave

    Sounds like we need sub-maintainer sign off. Not sure about "design review" as we don't have designers (that I know of).

  • šŸ‡¬šŸ‡§United Kingdom alexpott šŸ‡ŖšŸ‡ŗšŸŒ

    @smustgrave - I pinged the Olivero maintainers in Slack - @kostyashupenko is a maintainer of Olivero :)

  • šŸ‡ŗšŸ‡øUnited States smustgrave

    Sorry @kostyashupenko!

  • Status changed to Needs work 10 months ago
  • šŸ‡ŗšŸ‡øUnited States mherchel Gainesville, FL, US

    Getting close! Visually, this looks great, with the minor exception that there should be a gap between the logo and text.

    The main issue is that there are two <a> tags, which would be a bit confusing for people using assistive technology. All of the text and image should be wrapped within one <a> tag, and elements should be added in that as needed.

    The use of CSS grid on branding text is basic (although it works), when I mentioned this in #44, I was thinking to align the items within the <a> tag. I probably should have been a bit more specific.

  • šŸ‡ŗšŸ‡øUnited States mherchel Gainesville, FL, US

  • šŸ‡ŗšŸ‡øUnited States mradcliffe USA

    I am removing the Novice tag from this issue because it is not clear for a new contributor how to move the issue forward.

    Iā€™m using this documentation as a source: https://www.drupal.org/community/contributor-guide/task/triage-novice-is... ā†’

  • First commit to issue fork.
  • Pipeline finished with Failed
    10 months ago
    Total: 180s
    #167034
  • Pipeline finished with Failed
    10 months ago
    Total: 169s
    #167040
  • Pipeline finished with Failed
    10 months ago
    Total: 586s
    #167042
  • Status changed to Needs review 10 months ago
  • Status changed to Needs work 10 months ago
  • šŸ‡ŗšŸ‡øUnited States smustgrave

    Believe needs a rebase

  • Pipeline finished with Failed
    10 months ago
    Total: 693s
    #171317
  • Status changed to Needs review 9 months ago
  • Status changed to RTBC 9 months ago
  • šŸ‡®šŸ‡³India arunkumark Coimbatore

    Reviewed the MR !7792 is resolving the issue. Attached screenshot after applying the MR.

    Before applying the patch:

    After applying the patch:

    Different logo and Long slogan

    Ready for RTBC.

  • Status changed to Needs review 9 months ago
  • šŸ‡®šŸ‡³India arunkumark Coimbatore

    Found an issue during the test. If the Logo is unchecked(Show only Sitename and Slogan), none of the details are showing.

  • Pipeline finished with Success
    9 months ago
    Total: 604s
    #172371
  • šŸ‡®šŸ‡³India divya.sejekan

    Verified for Drupal - 10.2 . The slogan is visible now.
    Verified with Drupal 11.x-dev .The Slogan is visible now
    Verified with disabled logo . The slogan is visible

    Steps to reproduce
    1. Install Drupal.
    2. Go to "Configuration"->Basic Site Setting-> Add Site Slogan->Save.
    3. Go to Homepage and Click on the Site branding "Configure Block option and enable site slogan checkbox -> Save Block
    4. Go to Homepage and observe the slogan not displayed in the site branding block.

    But the patch has white space warning

  • šŸ‡®šŸ‡³India mithun s Bangalore

    I have validated before MR that the slogan is not displaying on the UI for olivero theme.
    Validated by switching to the branch and verified the slogan is visible/hidden as per the users choice and based on the block configuration. Attaching the screenshots for reference.

    RTBC +1.

  • Status changed to RTBC 9 months ago
  • šŸ‡®šŸ‡³India mithun s Bangalore
  • šŸ‡®šŸ‡³India mithun s Bangalore
  • Status changed to Needs work 9 months ago
  • šŸ‡³šŸ‡æNew Zealand quietone

    @Mithun S, Thanks for your interest in this issue. Testing of the latest MR and screenshots were already supplied in the comment before your work. The consequences of that are explained in this issue in comment #25. In the Drupal community we expect contributors to read all comments before making a contribution.

    The testing in #106 does not account for the error case discovered in #105. Nor has there been a code review since that change. And surely the tests needs to be updated to include that situation. Back to needs work.

  • First commit to issue fork.
  • Pipeline finished with Failed
    8 months ago
    Total: 874s
    #208373
  • šŸ‡®šŸ‡³India Tirupati_Singh

    I've tested the MR!7792, the site slogan issue has been fixed and the font size for both Sitename and Site slogan is appearing perfectly. Found one issue for the spacing between the top site-branding region for mobile devices. On mobile devices there no space between the top of region and the site branding logo. Attaching screenshots of before and after for the fixes.

  • Status changed to Needs review 8 months ago
  • Status changed to Needs work 7 months ago
  • šŸ‡®šŸ‡³India riddhi.addweb

    I tried the MR7792, but it seems like it does not work for me, with and without the patch the issue looks the same. Attaching the SS for the same.

  • Pipeline finished with Success
    7 months ago
    Total: 671s
    #224307
  • šŸ‡®šŸ‡³India Tirupati_Singh

    @riddhi.addweb, could you confirm whether you have enabled the option Site slogan under Site branding block configuration? If the Site slogan option has not been checked then only Site name will be visible, in order to make Site slogan also visible you'll have to check that Site slogan option. Attaching the Site branding block configuration screenshot for your reference.

  • šŸ‡®šŸ‡³India Tirupati_Singh

    Attaching the Site branding block configuration screenshot for your reference.

  • Status changed to Needs review 7 months ago
  • šŸ‡®šŸ‡³India ahsannazir

    @riddhi.addweb Can you please follow the Steps to reproduce once again. i am able to see slogan . attaching screenshot

  • Status changed to RTBC 7 months ago
  • šŸ‡®šŸ‡³India chandansha

    I have tested MR 7792 for 11.0-dev. I can see the Slog.
    I moved it to RTBC.
    THANKS!!

  • Status changed to Needs work 7 months ago
  • šŸ‡¬šŸ‡§United Kingdom alexpott šŸ‡ŖšŸ‡ŗšŸŒ

    I see that @mherchel noted the two a tag issue in #98 and #97 BUT this is an existing issue with the site branding block and in my mind requires a separate issue to discuss the usability concerns. Adding the site slogan is not part of that.

  • to fix the bug, first correct the 3 files as OliveroSloganFixed.png
    after Clear all caches at Configuration > Development > Performance
    refresh the page

  • šŸ‡§šŸ‡ŖBelgium redseujac

    @ito78x
    It's working indeed only if site name and site slogan are selected, but unfortunately it doesn't work if site logo and site slogan are selected.

    In that case only the slite logo is shown and the site slogan is not shown.

    I guess it's caused by your code in templates\block--system-branding-block.html.twig.

  • Pipeline finished with Success
    3 months ago
    Total: 506s
    #342519
  • Status changed to Needs review 3 months ago
  • šŸ‡®šŸ‡³India Tirupati_Singh

    Hi @redseujac @alexpott, I've fixed the site slogan issue while using the Olivero theme. Now the site slogan is being shown for all the cases when the site slogan, site name and site logo have been enable on site-branding block configuration for the theme. I'm attaching the screenshots of the fixes for the issue. Please review the MR changes.

    Thanks!

  • The Needs Review Queue Bot ā†’ tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    This does not mean that the patch necessarily 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.

  • Pipeline finished with Success
    3 months ago
    Total: 726s
    #343143
  • šŸ‡®šŸ‡³India Tirupati_Singh

    Moving back to Needs Review as the mentioned error in the file 3188136-nr-bot.txt ā†’ has been fixed by @Bhanu951.

  • šŸ‡®šŸ‡³India sourav_paul Kolkata

    Tried to applied the patch but its giving error..

  • šŸ‡®šŸ‡³India sagarmohite0031

    Hello,
    I also try to apply patch but getting error.
    Attaching screenshots

  • Pipeline finished with Failed
    3 months ago
    Total: 642s
    #351540
  • šŸ‡®šŸ‡³India arunkumark Coimbatore

    Done the rebase, Now the MR passed, and hope it will apply to the latest version of the Drupal core.

  • šŸ‡®šŸ‡³India ahsannazir

    The changes in MR #127 are applied successfully.
    Now, the slogan is visible in all the cases:

    Show slogan only

    Show slogan and name

    Show slogan and logo

    Show slogan with name and logo

  • šŸ‡®šŸ‡³India sourav_paul Kolkata

    I've retested the patch.
    The patch applied cleanly on 11.x & it fixed the site slogan visibility issue..

    Attaching ss:

    Hence moving it to RTBC.

    Thanks @arunkumark & @tirupati_singh

  • šŸ‡¬šŸ‡§United Kingdom catch

    This still needs design review. Either from the Olivero team or from a product manager I think.

Production build 0.71.5 2024