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

KTextTruncator: Make custom styling easier/safer #958

Open
2 tasks
nucleogenesis opened this issue Mar 11, 2025 · 0 comments
Open
2 tasks

KTextTruncator: Make custom styling easier/safer #958

nucleogenesis opened this issue Mar 11, 2025 · 0 comments

Comments

@nucleogenesis
Copy link
Member

Desired behavior

During development on Kolibri, I ran into an issue where text passed to KTextTruncator (which was a long URL) resulted in a strange changes to the total width of the KTextTruncator's output.

The fix here was to set the break-word CSS property to anywhere for this particular case.

The /deep/ styles can be brittle if KTextTruncator changes, so it'd be ideal if KTextTruncator had a prop providing a way to pass custom styles.

Outcomes

  • There is a way to avoid using /deep/ styles to affect KTextTruncator
  • An issue is created in the Kolibri repo to leverage the changes made to close this PR in the aforelinked commit.
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

No branches or pull requests

1 participant