Skip to content

Conversation

@Alex-Jordan
Copy link
Contributor

This moves the question mark help icons next to each h1 outside of the h1 (but still visually in basically the same place).

Without this, when you look at a heading tree for a page, you see a little question mark at the end of each h1, and that shouldn't be in the actual heading.

Copy link
Member

@drgrice1 drgrice1 left a comment

Choose a reason for hiding this comment

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

This looks good. I suggest a small tweak though.

Comment on lines 380 to 388
h1.page-title {
font-size: 31.5px;
line-height: 35px;
display: inline-block;
}
h1.page-title + a {
font-size: 31.5px;
margin-left: 0.5rem;
}
Copy link
Member

Choose a reason for hiding this comment

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

I think the help h.page-title + a also needs the line-height. Otherwise the page title gets uneven spacing above and below it.

Also, take advantage of scss here. So make this:

Suggested change
h1.page-title {
font-size: 31.5px;
line-height: 35px;
display: inline-block;
}
h1.page-title + a {
font-size: 31.5px;
margin-left: 0.5rem;
}
h1.page-title {
font-size: 31.5px;
line-height: 35px;
display: inline-block;
& + a {
font-size: 31.5px;
line-height: 35px;
margin-left: 0.5rem;
}
}

@pstaabp pstaabp merged commit 45ef565 into openwebwork:WeBWorK-2.18 Jul 20, 2023
@pstaabp
Copy link
Member

pstaabp commented Jul 20, 2023

Oops. The changes hadn't been made yet.

drgrice1 added a commit to drgrice1/webwork2 that referenced this pull request Jul 20, 2023
This is just my suggestion for openwebwork#2139 that didn't get applied before it
was merged.
@Alex-Jordan Alex-Jordan deleted the help-headings branch August 18, 2024 20:38
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.

3 participants