Skip to content

Commit 0a1903e

Browse files
committed
minor #1789 [Doc] Misc fixes in Twig Component docs (javiereguiluz)
This PR was merged into the 2.x branch. Discussion ---------- [Doc] Misc fixes in Twig Component docs | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Issues | - | License | MIT Commits ------- b46b87d [Doc] Misc fixes in Twig Component docs
2 parents 4b3fcae + b46b87d commit 0a1903e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/TwigComponent/doc/index.rst

+3-4
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ Component Name Template Path
255255
``Button:Primary`` ``templates/components/Button/Primary.html.twig``
256256
=================== ==================================================
257257

258-
Any `:` in the name are changed to subdirectories.s
258+
Any ``:`` in the name are changed to subdirectories.
259259

260260
You can control the template used via the ``AsTwigComponent`` attribute:
261261

@@ -836,7 +836,7 @@ that's passed to it via the ``outerBlocks`` variable and forward it into ``Alert
836836
{{ block(outerBlocks.content) }}
837837
</twig:Alert>
838838

839-
By passing the original ``content`` block into the `content` block of ``Alert``,
839+
By passing the original ``content`` block into the ``content`` block of ``Alert``,
840840
this will work perfectly.
841841

842842
.. _attributes:
@@ -1175,7 +1175,7 @@ CVA and Tailwind CSS
11751175

11761176
CVA work perfectly with Tailwind CSS. The only drawback is that you can have class conflicts.
11771177
To "merge" conflicting classes together and keep only the ones you need, use the
1178-
``tailwind_merge()` method from `tales-from-a-dev/twig-tailwind-extra`_
1178+
``tailwind_merge()`` method from `tales-from-a-dev/twig-tailwind-extra`_
11791179
with the ``cva()`` function:
11801180

11811181
.. code-block:: terminal
@@ -1294,7 +1294,6 @@ If no variants match, you can define a default set of classes to apply:
12941294
</twig:Alert>
12951295
// class="alert bg-red text-lg font-bold rounded-md"
12961296

1297-
12981297
Test Helpers
12991298
------------
13001299

0 commit comments

Comments
 (0)