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

u-no-wrap #5361

Open
petesfrench opened this issue Oct 2, 2024 · 3 comments
Open

u-no-wrap #5361

petesfrench opened this issue Oct 2, 2024 · 3 comments
Labels
P3 Triaged Issue has been reviewed as part of legacy backlog grooming (project P3). Triaged: v4 Triaged, to be implemented as part of Vanilla v4 WG: Validated Validate working group proposals

Comments

@petesfrench
Copy link
Contributor

petesfrench commented Oct 2, 2024

Visual

image

Context

When content needs to be together to have sense, but also requires spacing, eg. a phone number "+44 203 656 5291"

I am using it here, but likely should be applied in a lot of places like this.

State

n/a

Progressive enhancement

n/a

Pattern example

.u-no-wrap {
  white-space: nowrap;
}
@petesfrench petesfrench added the WG: Proposal Working group proposals label Oct 2, 2024
Copy link

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/WD-15539.

This message was autogenerated

@bartaz bartaz added P3 Triaged Issue has been reviewed as part of legacy backlog grooming (project P3). Triaged: v4 Triaged, to be implemented as part of Vanilla v4 labels Oct 2, 2024
@bartaz
Copy link
Member

bartaz commented Oct 2, 2024

Triage: this seems low effort and useful enough to be implemented in current architecture.

@bartaz
Copy link
Member

bartaz commented Nov 27, 2024

Some other suggestions:

use   instead of spaces, to prevent it from wrapping on spaces.

Adrian suggests a more semantic approach, using a specific styling for telephone links:

<a href="tel:123-456-7890">123-456-7890</a>

a[href^="tel:"] {
    white-space: nowrap;
}

Lyubo: what if we want a telephone that is not a link?

Dani: we would need to specify guidelines where it can/should be use and where it shouldn't.

@petesfrench Do you know of any examples that are not a telephone?

WG: Validated, but we need to make sure we document it together with recommendation on the usage.

@bartaz bartaz added WG: Validated Validate working group proposals and removed WG: Proposal Working group proposals labels Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 Triaged Issue has been reviewed as part of legacy backlog grooming (project P3). Triaged: v4 Triaged, to be implemented as part of Vanilla v4 WG: Validated Validate working group proposals
Projects
None yet
Development

No branches or pull requests

2 participants