From b698fdcc0997e529e8f7df73c471e457c154f811 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean=20Mendon=C3=A7a?= Date: Wed, 7 May 2025 15:05:30 +0000 Subject: [PATCH] aria-disabled for FormFieldLabel --- lib/ruby_ui/form/form_field_label.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/ruby_ui/form/form_field_label.rb b/lib/ruby_ui/form/form_field_label.rb index 032ada13..d30f8b65 100644 --- a/lib/ruby_ui/form/form_field_label.rb +++ b/lib/ruby_ui/form/form_field_label.rb @@ -9,7 +9,13 @@ def view_template(&) private def default_attrs - {class: "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"} + { + class: [ + "text-sm font-medium leading-none", + "peer-disabled:cursor-not-allowed peer-disabled:opacity-70", + "peer-aria-disabled:cursor-not-allowed peer-aria-disabled:opacity-70 peer-aria-disabled:pointer-events-none" + ] + } end end end