Introduce KTextTruncator component for text truncation #4591
Labels
DEV: frontend
good first issue
Self-contained, straightforward, low-complexity
help wanted
Open source contributors welcome
P2 - normal
Priority: Nice to have
🌱 Are you new to the codebase? Welcome and please see the contributing guidelines.
Expected behavior
Whenever relevant, Studio should use
KTextTruncator
component from the Kolibri Design System (KDS) to achieve text truncation.One example is text truncation in the ClipboardChip.vue but there will likely be more places.
Current Behavior
Studio currently uses its own implementation for text truncation.
Impact
This is part of migrating Studio to KDS.
KTextTruncator
provides a robust and well-tested solution for text truncation and will eliminate the need to re-implement truncation.Trade-Offs
Not aware of any.
Guidance
ellipsis
.KTextTruncator
, refer to its documentation. If working with the design system for the first time, study how otherK
components are used in Studio.KTextTruncator
. If that's the case, please mention reasons for not using it in your pull request.Acceptance Criteria
KTextTruncator
wherever relevant.KTextTruncator
has been introduced have been visually reviewed and do not have any regressions.KTextTruncator
is better not to be used has been provided in the pull request.The text was updated successfully, but these errors were encountered: