Skip to content

[Text width] Define max-inline-size for text #7119

Closed as not planned
Closed as not planned

Description

@kyrspl

Is your feature request related to a problem? Please describe.
Within our product, we have noticed inconsistencies in text width across various components. This not only affects the visual aesthetics but also impacts readability. It's crucial to address this issue to maintain a consistent appearance.

Potential solution
I propose to use options for max text width across EUI. We currently have this option in EuiText when grow is set to false. This will allow developers to set a consistent text width across different components, ensuring uniformity. The max text width can be applied as a default setting, with the flexibility for developers to override it if a specific component requires a different width.

Alternatives considered

  • Fixed Width for All Components: One approach could be to set a fixed text width for all components. However, this might be to constrictive as different components might have varying content and design requirements.
  • Responsive Text Width: Another option is to have a responsive text width based on the screen size or container width. This would adjust the text width dynamically but might introduce complexities in implementation.
  • Component-specific Settings: Instead of a global setting, we could allow developers to set text width at the component level. While this offers flexibility, it might lead to inconsistencies if not implemented with care.

Activity

  1. JasonStoltz commented on Aug 28, 2023

    @JasonStoltz
    Contributor

    We're flagging this as "high" priority for the team.

    We're labeling this as a "large" effort, because while it is a small dev lift, there will be a fair amount of work researching this and documenting it correctly.

    Kyriakos mentioned that this is not ready to work yet, it needs more design work first. Assigning to @kyrspl for more info.

  2. github-actions commented on Feb 25, 2024

    @github-actions

    👋 Hi there - this issue hasn't had any activity in 6 months. If the EUI team has not explicitly expressed that this is something on our roadmap, it's unlikely that we'll pick this issue up. We would sincerely appreciate a PR/community contribution if this is something that matters to you! If not, and there is no further activity on this issue for another 6 months (i.e. it's stale for over a year), the issue will be auto-closed.

  3. added
    stale-issue
    on Feb 25, 2024
  4. github-actions commented on Aug 23, 2024

    @github-actions

    ❌ Per our previous message, this issue is auto-closing after having been open and inactive for a year. If you strongly feel this is still a high-priority issue, or are interested in contributing, please leave a comment or open a new issue linking to this one for context.

  5. added
    stale-issue-closed
    on Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

stale-issuestale-issue-closed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions