Skip to content

[Doc] Misc fixes in Twig Component docs #1789

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/TwigComponent/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ Component Name Template Path
``Button:Primary`` ``templates/components/Button/Primary.html.twig``
=================== ==================================================

Any `:` in the name are changed to subdirectories.s
Any ``:`` in the name are changed to subdirectories.

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

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

By passing the original ``content`` block into the `content` block of ``Alert``,
By passing the original ``content`` block into the ``content`` block of ``Alert``,
this will work perfectly.

.. _attributes:
Expand Down Expand Up @@ -1175,7 +1175,7 @@ CVA and Tailwind CSS

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

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


Test Helpers
------------

Expand Down