-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Fixed Group Headings in Content #12702
Fixed Group Headings in Content #12702
Conversation
Previous optimisation incorrectly filtered the index fields needed to return published results
Ensuring that MemberManager.ConfirmEmailAsync persists, same changes in pull request #12640 but for v9
Issue 12551 search bug
Hi there @tiffy74, thank you for this contribution! 👍 While we wait for one of the Core Collaborators team to have a look at your work, we wanted to let you know about that we have a checklist for some of the things we will consider during review:
Don't worry if you got something wrong. We like to think of a pull request as the start of a conversation, we're happy to provide guidance on improving your contribution. If you realize that you might want to make some changes then you can do that by adding new commits to the branch you created for this work and pushing new commits. They should then automatically show up as updates to this pull request. Thanks, from your friendly Umbraco GitHub bot 🤖 🙂 |
# Conflicts: # src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MemberRepository.cs # src/Umbraco.Infrastructure/PublishedContentQuery.cs # src/Umbraco.Web.BackOffice/Security/BackOfficeAntiforgery.cs
Hi @tiffy74 , Thanks for this other accessibility PR! I merged the one linked to issue 42 just before this one, so it's looking all fine! Cheers! |
I think after changing the group headings to actually heading-element, it is taking too much vertical space. Previous it looked something like this: When using e.g. a laptop I think the group header is taking too much valuable space especially with many groups. It also seems it has some odd styling now as the elements have changed. where the tree group headers doesn't have same sizes. |
Yes I agree. I noticed this at the weekend. I have created a new issue on our accessibility issues log and will resolve this asap |
Prerequisites
If there's an existing issue for this PR then this fixes umbraco/Umbraco-CMS.Accessibility.Issues#44
Description
When a group is created on a document type - in the content view the name of the group appears at the top of the group.
This is styled to appear as a heading - but it has no correspending H tag or role=heading in the html - this means it does not get announced as a heading to assistive technology. The impact is that those unable to visually perceive the text will be unaware that they are in a group entitled 'Content'. This is the same for any new group created in the same way:
Therefore I have submitted a PR that fixes this issue by adding a H2 tag to the group header. H2 because if the associated PR for issue 42 is accepted then it makes sense that the group headings are the next level after the H1 that should be the overall heading for the page (eg content)
Further I have attached additional styling to the section header to match it's previous style so there is minimal impact upon how the groups look visually.
In order to do this - the CSS properties need to be removed from the parent element and placed upon the H2 within. Futher the original CSS also had an absolute value for the font-size. This has now been amended to use the same .Less variable that is used elsewhere on the site.
.umb-group-panel__header {
padding: 12px 20px;
display: flex;
align-items: center;
justify-content: space-between;
color: @grayDarker;
border-bottom: 1px solid @gray-9;
}
.umb-group-panel__header h2 {
font-size: @fontSizeMedium;
font-weight: bold;
}
Testing
In order to test this: