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

fix(shs-5150): fixing empty headings on grid views #1413

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

mndonx
Copy link
Contributor

@mndonx mndonx commented Dec 1, 2023

READY FOR REVIEW

Summary

This PR updates the views-view-unformatted and views-view-grid templates to check for a heading tag within title markup before printing an <h3> tag in the template.

Urgency

medium

Steps to Test

Ensure there are no longer WAVE issues around empty heading tags printing on the following pages:

https://anthropology.suhumsci.loc/people/faculty-and-affiliates/faculty/leadership
https://dlcl.suhumsci.loc/people/faculty
https://shenlab.stanford.edu/people

Also check:
https://hs-traditional.suhumsci.loc/default-views/people

Please note that I have found one outlying issue that is noticeable in the traditional example. If the view returns "grouped" content, and it is grouped by a field that allows the user to select nothing, the field will print with comments inside the <h3>. I believe this will only happen live when logged in (I'm having trouble testing that since I can see template comments logged out locally.)

PR Checklist

@mndonx mndonx requested a review from cienvaras December 1, 2023 21:02
@cienvaras cienvaras changed the base branch from 10.0.5-release to fk-stnfd-sprint-40 December 5, 2023 00:58
Copy link
Collaborator

@cienvaras cienvaras left a comment

Choose a reason for hiding this comment

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

Looks great!

@cienvaras cienvaras merged commit 57d2121 into fk-stnfd-sprint-40 Dec 5, 2023
1 check passed
@cienvaras cienvaras deleted the SHS-5150-empty-views-headings branch December 5, 2023 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants