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

QOLDEV-260 heading line height fix - h2 only #806

Merged
merged 4 commits into from
Feb 20, 2023

Conversation

re-becca
Copy link
Member

@re-becca re-becca commented Feb 19, 2023

It was noticed that for any h2 heading links in an aside that the underline weight change on hover was not entirely visible. Increasing h2 line-height to 1.4 addressed the problem.

Edit: Here's a screenshot example of what was happening:
example-h2-linkhover-aside-bug

h2 {
line-height: 1.5em;
h2, h3, h4 {
line-height: 1.4;
Copy link
Contributor

Choose a reason for hiding this comment

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

Units have been dropped, did you mean 1.4em?

Copy link
Member Author

Choose a reason for hiding this comment

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

Heading line-height values in SWE's underlying Bootstrap framework are unitless. Reading about line-height on Mozilla's developer documentation it says "The used value is the unitless number multiplied by the element's own font size. In most cases, this is the preferred way to set line-height and avoid unexpected results due to inheritance." I made the call to keep SWE's values unitless as well.

@ThrawnCA
Copy link
Contributor

There is a conflict; you may need to merge the 4.0.15 branch into the QOLDEV-260 one, or rebase it.

@re-becca re-becca changed the base branch from release-v4.0.15 to release-v4.1.0 February 20, 2023 06:37
@re-becca re-becca merged commit bad3429 into release-v4.1.0 Feb 20, 2023
@duttonw duttonw deleted the QOLDEV-260-heading-line-height-fix branch July 5, 2023 23:57
@duttonw duttonw restored the QOLDEV-260-heading-line-height-fix branch July 5, 2023 23:57
@duttonw duttonw deleted the QOLDEV-260-heading-line-height-fix branch July 17, 2023 03:09
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