public inbox for yew-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH yew-widget-toolkit-assets] data table: enable selection by default
@ 2026-06-22  8:34 Dominik Csapak
  2026-06-22  8:57 ` applied: " Dietmar Maurer
  0 siblings, 1 reply; 2+ messages in thread
From: Dominik Csapak @ 2026-06-22  8:34 UTC (permalink / raw)
  To: yew-devel

it's very useful to select and copy&paste data from a data table, but
currently this is not allowed due to the `user-select: none` css
property.

Disabling user selection should rather be done individually on specific
usage sites (where the selection interferes with regular usage), so
remove that limitation here.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
We allow user selection in most cases, such as labels and titles, but
not in datatables. This was already annoying in extjs, so lets not
repeat it for the yew interface. If we encounter cases where this makes
the UX worse, we can still disable it on that usage site. I guess almost
all cases are fine though from a short test.

 scss/_datatable.scss | 1 -
 1 file changed, 1 deletion(-)

diff --git a/scss/_datatable.scss b/scss/_datatable.scss
index 752c675..1a1a242 100644
--- a/scss/_datatable.scss
+++ b/scss/_datatable.scss
@@ -8,7 +8,6 @@
 .pwt-datatable-content {
     @include font_and_line_height("body-medium");
     border-collapse: collapse;
-    user-select: none;
 
     td {
         outline: 0;
-- 
2.47.3





^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-06-22  8:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-22  8:34 [PATCH yew-widget-toolkit-assets] data table: enable selection by default Dominik Csapak
2026-06-22  8:57 ` applied: " Dietmar Maurer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal