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 heading overlap #4261

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

spencerldixon
Copy link
Collaborator

Trello card

https://trello.com/c/wo4ao4Nj/6765-fix-overlapping-headings-on-inspiration-navigation-cards?filter=member:spencerldixon

Context

Headings on inspiration navigation cards that wrap onto two lines are overlapping.
We need to fix the styling so that the words aren’t overlapping.

Changes proposed in this pull request

I find the highlight-text mixin isn't working properly and causes multilines of text to overlap.

  • Amend the highlight-text mixin to apply styles to a second span tag that is set to relative to create a new stacking context where the text sits on top of the previous span, used as the background.
  • Allows existing titles to remain unchanged, but to drop in the new span wherever we encounter overlap

Guidance to review

@github-actions github-actions bot added ruby Pull requests that update Ruby code Style labels Oct 18, 2024
Copy link

Copy link

sonarcloud bot commented Oct 18, 2024

Copy link
Contributor

@gemmadallmandfe gemmadallmandfe left a comment

Choose a reason for hiding this comment

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

Looks good to me

Have tagged @jenhadfield-dfe for a review before this is merged

Copy link
Contributor

@martyn-w martyn-w left a comment

Choose a reason for hiding this comment

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

👍 LGTM

@gemmadallmandfe
Copy link
Contributor

This can be merged first thing on Monday morning :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Review ruby Pull requests that update Ruby code Style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants