Skip to content

Commit 7fcae3c

Browse files
committed
move cautions to make them visible
If the reader follows a direct link to the option's description, they would very likely not see the caution as it was rendered outside the viewport.
1 parent 9f82c6f commit 7fcae3c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

reference/forms/types/options/max_length.rst.inc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
max_length
2+
~~~~~~~~~~
3+
14
.. caution::
25

36
The ``max_length`` option has been deprecated and will be removed in 3.0.
47
Instead, use the ``attr`` option by setting it to an array with a ``maxlength`` key.
58

6-
max_length
7-
~~~~~~~~~~
8-
99
**type**: ``integer`` **default**: ``null``
1010

1111
If this option is not null, an attribute ``maxlength`` is added, which

reference/forms/types/options/pattern.rst.inc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
pattern
2+
~~~~~~~
3+
14
.. caution::
25

36
The ``pattern`` option has been deprecated and will be removed in 3.0.
47
Instead, use the ``attr`` option by setting it to an array with a ``pattern`` key.
58

6-
pattern
7-
~~~~~~~
8-
99
**type**: ``string`` **default**: ``null``
1010

1111
This adds an HTML5 ``pattern`` attribute to restrict the field input by a

0 commit comments

Comments
 (0)