Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UHF-X: Check for list item count before rendering ul #927

Merged
merged 3 commits into from
Mar 25, 2024

Conversation

Arkkimaagi
Copy link
Contributor

@Arkkimaagi Arkkimaagi commented Mar 20, 2024

UHF-X

Siteimprove found a bunch of pages that have

    element without visible content in it. Basically a list with no list-iteims.

    What was done

    • Card template was fixed to check for list content before rendering ul elements
    • Filter template was fixed to check for list content before rendering ul elements

    How to install

    • Make sure your instance is up and running on latest dev branch.
      • git pull origin dev
      • make fresh
    • Update the HDBT theme
      • composer require drupal/hdbt:dev-UHF-X_empty_ul_elements
    • Run make drush-cr

    How to test

    • Check that events with not tags do not render ul-element for the tags
    • Check that filter-forms do not render ul-element for the parameters if there are none
    • Check that code follows our standards

    Designers review

    • This PR does not need designers review
    • This PR has been visually reviewed by a designer (Name of the designer)

@Arkkimaagi Arkkimaagi marked this pull request as ready for review March 25, 2024 09:25
@Arkkimaagi Arkkimaagi force-pushed the UHF-X_empty_ul_elements branch from fecf4de to 1eaaeaf Compare March 25, 2024 09:42
@Arkkimaagi Arkkimaagi changed the title UHF-X: Check for tag count before rendering Card ul UHF-X: Check for list item count before rendering ul Mar 25, 2024
Copy link

⚠️ Visual regression found! Please check if this change is wanted or accidental. You can check the output here: https://city-of-helsinki.github.io/drupal-hdbt/pull/927/html_report/

Copy link
Contributor

@teroelonen teroelonen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works very nicely 🦖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants