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

Avoid using h5 in dt context for eventlist #120

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

danielgustafsson
Copy link
Collaborator

The h5 element is not allowed as a descendant of a dt element as dl is defined as flow content whereas hX is phrasing content. Fix by replacing with a span and CSS to match the styling that the h5 element provided.

Also fix three-space indentation while in there.

@mhagander
Copy link
Member

This doesn't look right to me. You're creating a <span class="eventtitle">, but the CSS update is for dt.eventtitle. Can and should we not just skip the span and assign class="eventtitle" directly to the dt element?

The h5 element is not allowed as a descendant of a dt element as
dl is defined as flow content whereas hX is phrasing content. Fix
by decorating the dt element with the styling that h5 provided.
@danielgustafsson
Copy link
Collaborator Author

Agreed, I've pushed a rebased version doing this which seems a better option.

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