@@ -26,7 +26,7 @@ def test_renders_a_checkbox_input_element_with_custom_value
2626 def test_renders_a_label
2727 render_inline ( Flowbite ::InputField ::Checkbox . new ( form : @form , attribute : :subscribed ) )
2828
29- assert_selector ( "label[for='user_subscribed'].font-medium.text-gray-900 " )
29+ assert_selector ( "label[for='user_subscribed'].font-medium.text-heading " )
3030 end
3131
3232 def test_renders_a_label_with_specific_content
@@ -38,7 +38,7 @@ def test_renders_a_label_with_specific_content
3838 def test_passes_options_to_the_label
3939 render_inline ( Flowbite ::InputField ::Checkbox . new ( form : @form , attribute : :subscribed , label : { content : "Check to receive updates" , options : { title : "label" } } ) )
4040
41- assert_selector ( "label[title='label'].font-medium.text-gray-900 " , text : "Check to receive updates" )
41+ assert_selector ( "label[title='label'].font-medium.text-heading " , text : "Check to receive updates" )
4242 end
4343
4444 def test_uses_specified_label_classes
@@ -52,7 +52,7 @@ def test_replaces_the_label_entirely
5252 component . with_label { "This is the full label" }
5353 end
5454
55- refute_selector ( "p.text-xs.font-normal.text-gray-500 " )
55+ refute_selector ( "p.text-xs.font-normal.text-body " )
5656 assert_text ( "This is the full label" )
5757 end
5858
@@ -73,13 +73,13 @@ def test_renders_unchecked_when_false
7373 def test_renders_a_hint
7474 render_inline ( Flowbite ::InputField ::Checkbox . new ( form : @form , attribute : :subscribed , hint : { content : "Check to receive updates" } ) )
7575
76- assert_selector ( "p.text-xs.font-normal.text-gray-500 " , text : "Check to receive updates" )
76+ assert_selector ( "p.text-xs.font-normal.text-body " , text : "Check to receive updates" )
7777 end
7878
7979 def test_passes_options_to_the_hint
8080 render_inline ( Flowbite ::InputField ::Checkbox . new ( form : @form , attribute : :subscribed , hint : { content : "Check to receive updates" , options : { title : "Hint" } } ) )
8181
82- assert_selector ( "p[title='Hint'].text-xs.font-normal.text-gray-500 " , text : "Check to receive updates" )
82+ assert_selector ( "p[title='Hint'].text-xs.font-normal.text-body " , text : "Check to receive updates" )
8383 end
8484
8585 def test_adds_aria_attributes_for_hint
@@ -94,7 +94,7 @@ def test_replaces_the_hint_entirely
9494 component . with_hint { "This is the full hint" }
9595 end
9696
97- refute_selector ( "p.text-xs.font-normal.text-gray-500 " )
97+ refute_selector ( "p.text-xs.font-normal.text-body " )
9898 assert_text ( "This is the full hint" )
9999 end
100100
@@ -113,7 +113,7 @@ def test_renders_disabled_checkbox
113113 def test_renders_disabled_label
114114 render_inline ( Flowbite ::InputField ::Checkbox . new ( form : @form , attribute : :subscribed , disabled : true ) )
115115
116- assert_selector ( "label[for='user_subscribed'].text-gray-400 " )
116+ assert_selector ( "label[for='user_subscribed'].text-fg-disabled " )
117117 end
118118
119119 def test_renders_enabled_checkbox_by_default
0 commit comments