Skip to content

fix: allow text in read-only components to be selected#4417

Open
TrevorBurnham wants to merge 2 commits intocloudscape-design:mainfrom
TrevorBurnham:read-only-selectable-text
Open

fix: allow text in read-only components to be selected#4417
TrevorBurnham wants to merge 2 commits intocloudscape-design:mainfrom
TrevorBurnham:read-only-selectable-text

Conversation

@TrevorBurnham
Copy link
Copy Markdown
Contributor

Fixes #4411

This PR modifies the styles on DateRangePicker, FileTokenGroup, Select and Multiselect to make text selectable.

Testing

I've added a read-only toggle to the demo pages and was able to manually test each of these.

  • Changes are covered with new/existing unit tests? No
  • Changes are covered with new/existing integration tests? No

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@TrevorBurnham TrevorBurnham requested a review from a team as a code owner April 8, 2026 18:52
@TrevorBurnham TrevorBurnham requested review from jperals and removed request for a team April 8, 2026 18:52
@TrevorBurnham TrevorBurnham changed the title Allow text in read-only components to be selected fix: Allow text in read-only components to be selected Apr 8, 2026
@TrevorBurnham TrevorBurnham changed the title fix: Allow text in read-only components to be selected fix: allow text in read-only components to be selected Apr 8, 2026
@TrevorBurnham TrevorBurnham force-pushed the read-only-selectable-text branch from 227fc00 to 119d85c Compare April 8, 2026 19:21
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.38%. Comparing base (7029006) to head (8de254f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4417   +/-   ##
=======================================
  Coverage   97.38%   97.38%           
=======================================
  Files         928      928           
  Lines       29200    29200           
  Branches    10565    10564    -1     
=======================================
  Hits        28435    28435           
- Misses        718      759   +41     
+ Partials       47        6   -41     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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]: Text in read-only date range picker is unselectable

2 participants