From 150718eb1d2f5ca3242b94b050cacf155d7af40f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Andr=C3=A9?= Date: Mon, 30 Dec 2024 00:26:33 +0100 Subject: [PATCH] Wrap long lines --- src/TwigComponent/doc/index.rst | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/TwigComponent/doc/index.rst b/src/TwigComponent/doc/index.rst index 336714d876..dc13f5abba 100644 --- a/src/TwigComponent/doc/index.rst +++ b/src/TwigComponent/doc/index.rst @@ -805,10 +805,12 @@ When overriding the ``alert_message`` block, you have access to the ``message`` .. versionadded:: 2.13 - The ability to refer to the scope of higher components via the ``outerScope`` variable was added in 2.13. + The ability to refer to the scope of higher components via the ``outerScope`` + variable was added in 2.13. -As mentioned before, variables from lower components are merged with those from upper components. When you need -access to some properties or functions from higher components, that can be done via the ``outerScope...`` variable: +As mentioned before, variables from lower components are merged with those from +upper components. When you need access to some properties or functions from higher +components, that can be done via the ``outerScope...`` variable: .. code-block:: twig @@ -1176,12 +1178,14 @@ Component with Complex Variants (CVA) .. deprecated:: 2.20 - The ``cva`` function was deprecated in TwigComponents 2.20, and will be removed in 3.0. - The function is now provided by the ``twig/html-extra:^3.12`` package under the name `html_cva`_. + The ``cva`` function was deprecated in TwigComponents 2.20, and will be + removed in 3.0. The function is now provided by the ``twig/html-extra:^3.12`` + package under the name `html_cva`_. -`CVA (Class Variant Authority)`_ originates from the JavaScript ecosystem. It enables reusable, customizable -components by managing variants (e.g., color, size). The ``cva()`` Twig function defines ``base`` classes -(always applied) and variant-specific classes: +`CVA (Class Variant Authority)`_ originates from the JavaScript ecosystem. It +enables reusable, customizable components by managing variants (e.g., color, size). +The ``cva()`` Twig function defines ``base`` classes (always applied) and variant-specific +classes: .. code-block:: html+twig