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(Truncate): fix text duplication in middle position #11417

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

Conversation

mfrances17
Copy link
Contributor

What: Closes #10858

Additional issues:

@mfrances17 mfrances17 requested a review from a team January 14, 2025 17:11
@mfrances17 mfrances17 self-assigned this Jan 14, 2025
@mfrances17 mfrances17 requested review from tlabaj and kmcfaul and removed request for a team January 14, 2025 17:11
@patternfly-build
Copy link
Contributor

patternfly-build commented Jan 14, 2025

Copy link
Contributor

@thatblindgeye thatblindgeye left a comment

Choose a reason for hiding this comment

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

The portion that renders the content for truncated middle may also need to be updated as well. Right now what gets rendered (using the content from the issue) is the first and second character of the content string:

image

Since we're just returning the str param in the sliceContent helper instead of an array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug - [Truncate] - middle truncate renders wrong in some cases
3 participants