18F / guides

18F’s guides equip 18F teams, our partners, other practitioners, lawmakers, and the public with tools and practices to improve public services. They affirm experiences, build confidence, and empower exceptional digital experiences.
https://guides.18f.gov
Other
32 stars 14 forks source link

Header link icon breaks to second line at a certain title lengths #207

Open christophermather opened 9 months ago

christophermather commented 9 months ago

A description of the work

When an h2 header title is of a particular length, the link icon breaks to a second line on its own. We need to decide 1) if we think this is a problem, 2) if we can think of a solution and 3) if it's worth solving given the effort.

Note that this affects titles of particular lengths - long, but not so long that the title text breaks to a second line - and titles of particular length in certain viewports (mobile, tablet).

Some examples of this happening:

Example 1: Content guide > Our style > Voice and tone

image

Example 2: Brand > Templates > Google Slides presentation templates

image

Example 3: Brand > Principles > Convince with soundness not loudness

image

Point of contact on this issue

@christophermather

Reproduction steps (if necessary)

No response

Skills Needed

Does this need to happen in the next 2 weeks?

How much time do you anticipate this work taking?

No response

Acceptance Criteria

adunkman commented 5 months ago

See this Slack thread for suggestions on how to approach.

beepdotgov commented 2 months ago

Just me here, but I'd be inclined to see if text-wrap: balance helps address the issue. (Fully agree with the Slack thread that text-wrap: pretty would be ideal, but balance's browser support is a bit better.)

Happy to look into this whenever it's ready to be prioritized.

bpdesigns commented 2 months ago

@adunkman I recommend prioritizing this while we have people with front end skills on TLC