We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68e5211 commit 07ea351Copy full SHA for 07ea351
cookbook/form/form_customization.rst
@@ -896,6 +896,17 @@ original template:
896
897
See :ref:`cookbook-form-theming-methods` for how to apply this customization.
898
899
+.. tip::
900
+
901
+ Labels of required fields are rendered with a CSS class called ``required``
902
+ by default. You can use it to add an Asterisk using CSS only:
903
904
+ .. code-block:: css
905
906
+ label.required:before {
907
+ content: "* ";
908
+ }
909
910
Adding "help" messages
911
~~~~~~~~~~~~~~~~~~~~~~
912
0 commit comments