The site slogan doesn't show with Olivero

Created on 13 December 2020, over 3 years ago
Updated 27 May 2024, 30 days 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

1. Install Drupal 10.1.x-dev version.
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.

Proposed resolution

Site slogan should be displayed in site branding block.

Remaining tasks

write tests

User interface changes

Site slogan should be displayed on Site branding block

API changes

Data model changes

Release notes snippet

๐Ÿ› Bug report
Status

Needs work

Version

11.0 ๐Ÿ”ฅ

Component
Oliveroย  โ†’

Last updated 1 day ago

Created by

๐Ÿ‡ท๐Ÿ‡ดRomania claudiu.cristea Arad ๐Ÿ‡ท๐Ÿ‡ด

Live updates comments and jobs are added and updated live.
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
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Rinku Jacob 13 Kerala

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

  • Status changed to Needs review over 1 year ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Rinku Jacob 13 Kerala
  • Status changed to Needs work over 1 year 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.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Hamid.ali
  • 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 2 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 2 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
    about 2 months ago
    Total: 173s
    #158233
  • Pipeline finished with Success
    about 2 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 about 2 months ago
  • ๐Ÿ‡ซ๐Ÿ‡ฎFinland YevKo Espoo
  • Pipeline finished with Running
    about 2 months ago
    #158293
  • Status changed to RTBC about 2 months ago
  • Status changed to Needs work about 2 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
    about 2 months ago
    #159486
  • Pipeline finished with Failed
    about 2 months ago
    #159488
  • Pipeline finished with Failed
    about 2 months ago
    #159498
  • Pipeline finished with Success
    about 2 months ago
    #159510
  • Status changed to Needs review about 2 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 about 2 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... โ†’

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia ehsann_95

    ahsannazir โ†’ made their first commit to this issueโ€™s fork.

  • Pipeline finished with Failed
    about 2 months ago
    Total: 180s
    #167034
  • Pipeline finished with Failed
    about 2 months ago
    Total: 169s
    #167040
  • Pipeline finished with Failed
    about 2 months ago
    Total: 586s
    #167042
  • Status changed to Needs review about 2 months ago
  • Status changed to Needs work about 2 months ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    Believe needs a rebase

  • Pipeline finished with Failed
    about 1 month ago
    Total: 693s
    #171317
  • Status changed to Needs review about 1 month ago
  • Status changed to RTBC about 1 month 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 about 1 month 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
    about 1 month 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 about 1 month ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Mithun S Bangalore
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Mithun S Bangalore
  • Status changed to Needs work 30 days ago
  • ๐Ÿ‡ณ๐Ÿ‡ฟNew Zealand quietone New Zealand

    @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.

Production build 0.69.0 2024