Skip to content

Copy-to-clipboard icon moves to a new line for long heading text #66239

@SkyZeroZx

Description

@SkyZeroZx

Describe the problem that you experienced

When inline text or code is long enough to wrap into multiple lines, the copy-to-clipboard icon is rendered on a separate line below the text, instead of staying aligned with the first line.
For example An event is handled by a component with default change detection

Example

Image

Proposed solution

Consider improving the wrapping behavior by using text-wrap: balance or text-wrap: pretty, so the text wraps more evenly and keeps the copy icon visually aligned with the content.

This would improve readability and consistency across documentation pages with long inline text.

I’m not sure about using text-wrap: balance, since it seems to produce layouts like the one shown in the image above.

Image

text-wrap: pretty might be a better fit in this case, but I’d like to get the team’s feedback before proposing a PR.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: docs-infraAngular.dev application and infrastructurehelp wantedAn issue that is suitable for a community contributor (based on its complexity/scope).

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions