carbon-design-system / carbon

A design system built by IBM
https://www.carbondesignsystem.com
Apache License 2.0
7.59k stars 1.76k forks source link

[Feature Request]: UI component for text selection #16774

Open niranjanibm opened 2 weeks ago

niranjanibm commented 2 weeks ago

The problem

While using Carbon Design system for a Figma prototype, I came across a representation that is not available in the library. Text selection: The use case is to highlight the searched text within the populated search result. The solution could be used in scenarios where representations of selected text is necessary.

Currently used in Figma

The solution

The proposed solution is to use a coloured auto layout bounding on text box with exact same width and length, effectively representing that the text is selected.

Search highlight

Examples

Search Highlight using autolayout Search Highlight Figma

Application/PAL

WatsonX Code Assistant

Business priority

Low Priority = release date is not dependent on fix or not upcoming

Available extra resources

No response

Code of Conduct

github-actions[bot] commented 2 weeks ago

Thank you for submitting a feature request. Your proposal is open and will soon be triaged by the Carbon team.

If your proposal is accepted and the Carbon team has bandwidth they will take on the issue, or else request you or other volunteers from the community to work on this issue.