Skip to content

Commit b333d63

Browse files
committedNov 26, 2024
minor #6571 Fix icon sets in documentation (JorickPepin)
This PR was merged into the 4.x branch. Discussion ---------- Fix icon sets in documentation <!-- Thanks for your contribution! If you are proposing a new feature that is complex, please open an issue first so we can discuss about it. Note: all your contributions adhere implicitly to the MIT license --> Commits ------- 42d00f9 Fix icon sets in documentation
2 parents fdbf0f9 + 42d00f9 commit b333d63

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed
 

‎doc/actions.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -275,12 +275,12 @@ the ``Action`` class constructor::
275275
$viewInvoice = Action::new('viewInvoice', false);
276276

277277
// the third optional argument is the full icon name
278-
$viewInvoice = Action::new('viewInvoice', 'Invoice', 'fa6solid:file-invoice');
278+
$viewInvoice = Action::new('viewInvoice', 'Invoice', 'fa6-solid:file-invoice');
279279

280280
.. note::
281281

282282
By default, EasyAdmin includes the full icon sets for `FontAwesome`_ icons
283-
(``fa6regular:``, ``fa6solid:`` and ``fa6brands:``), but you can
283+
(``fa6-regular:``, ``fa6-solid:`` and ``fa6-brands:``), but you can
284284
:ref:`use your own icon sets <icon-customization>`.
285285

286286
.. deprecated:: 4.16

‎doc/crud.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ served by some dashboard using the ``#[AdminDashboard]`` attribute::
8585
// ...
8686

8787
#[AdminDashboard(routes: [
88-
'index' => ['routePath' => '/all']
88+
'index' => ['routePath' => '/all'],
8989
'new' => ['routePath' => '/create', 'routeName' => 'create'],
9090
'edit' => ['routePath' => '/editing-{entityId}', 'routeName' => 'editing'],
9191
'delete' => ['routePath' => '/remove/{entityId}'],

‎doc/dashboards.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -514,15 +514,15 @@ the look and behavior of each menu item::
514514
public function configureMenuItems(): iterable
515515
{
516516
return [
517-
MenuItem::linkToDashboard('Dashboard', 'fa6solid:house'),
517+
MenuItem::linkToDashboard('Dashboard', 'fa6-solid:house'),
518518

519519
MenuItem::section('Blog'),
520-
MenuItem::linkToCrud('Categories', 'fa6solid:tags', Category::class),
521-
MenuItem::linkToCrud('Blog Posts', 'fa6regular:lines', BlogPost::class),
520+
MenuItem::linkToCrud('Categories', 'fa6-solid:tags', Category::class),
521+
MenuItem::linkToCrud('Blog Posts', 'fa6-regular:file-lines', BlogPost::class),
522522

523523
MenuItem::section('Users'),
524-
MenuItem::linkToCrud('Comments', 'fa6regular:comments', Comment::class),
525-
MenuItem::linkToCrud('Users', 'fa6solid:user', User::class),
524+
MenuItem::linkToCrud('Comments', 'fa6-regular:comments', Comment::class),
525+
MenuItem::linkToCrud('Users', 'fa6-solid:user', User::class),
526526
];
527527
}
528528
}
@@ -534,7 +534,7 @@ the second argument is the icon to display. The icon name follows the pattern
534534
.. note::
535535

536536
By default, EasyAdmin includes the full icon sets for `FontAwesome`_ icons
537-
(``fa6regular:``, ``fa6solid:`` and ``fa6brands:``), but you can
537+
(``fa6-regular:``, ``fa6-solid:`` and ``fa6-brands:``), but you can
538538
:ref:`use your own icon sets <icon-customization>`.
539539

540540
.. deprecated:: 4.16

‎doc/fields.rst

+7-7
Original file line numberDiff line numberDiff line change
@@ -299,14 +299,14 @@ The arguments of the ``addTab()`` method are:
299299
icon for the tab or users won't be able to click on it); You can also pass
300300
``string`` and ``TranslatableInterface`` variables. In both cases, if they
301301
contain HTML tags they will be rendered in stead of escaped;
302-
* ``$icon``: (type: ``?string``) the full icon name (e.g. ``fa6regular:folder-open``);
302+
* ``$icon``: (type: ``?string``) the full icon name (e.g. ``fa6-regular:folder-open``);
303303
if you don't display a text label for the tab, make sure to display an icon or
304304
users won't be able to click on the tab.
305305

306306
.. note::
307307

308308
By default, EasyAdmin includes the full icon sets for `FontAwesome`_ icons
309-
(``fa6regular:``, ``fa6solid:`` and ``fa6brands:``), but you can
309+
(``fa6-regular:``, ``fa6-solid:`` and ``fa6-brands:``), but you can
310310
:ref:`use your own icon sets <icon-customization>`.
311311

312312
.. deprecated:: 4.16
@@ -372,7 +372,7 @@ The arguments of the ``addColumn()`` method are:
372372
or an empy string, no title is displayed. You can also pass ``string`` and
373373
``TranslatableInterface`` variables. In both cases, if they contain HTML tags
374374
they will be rendered in stead of escaped;
375-
* ``$icon``: (type: ``?string``) the full icon name (e.g. ``fa6regulat:folder-open``)
375+
* ``$icon``: (type: ``?string``) the full icon name (e.g. ``fa6-regulat:folder-open``)
376376
that is displayed next to the column label;
377377
* ``$help``: (type: ``?string``) an optional content that is displayed below the
378378
column label; it's mostly used to describe the column contents or provide further
@@ -382,7 +382,7 @@ The arguments of the ``addColumn()`` method are:
382382
.. note::
383383

384384
By default, EasyAdmin includes the full icon sets for `FontAwesome`_ icons
385-
(``fa6regular:``, ``fa6solid:`` and ``fa6brands:``), but you can
385+
(``fa6-regular:``, ``fa6-solid:`` and ``fa6-brands:``), but you can
386386
:ref:`use your own icon sets <icon-customization>`.
387387

388388
.. deprecated:: 4.16
@@ -475,7 +475,7 @@ Add fieldsets with the created with the ``addFieldset()`` method of the special
475475

476476
// fieldsets can also define their icon, CSS class and help message
477477
FormField::addFieldset('Contact information')
478-
->setIcon('fa6solid:phone')->addCssClass('optional')
478+
->setIcon('fa6-solid:phone')->addCssClass('optional')
479479
->setHelp('Phone number is preferred'),
480480
TextField::new('phone'),
481481
TextField::new('email')->hideOnIndex(),
@@ -495,13 +495,13 @@ The arguments of the ``addFieldset()`` method are:
495495
or an empy string, no title is displayed. You can also pass ``string`` and
496496
``TranslatableInterface`` variables. In both cases, if they contain HTML tags
497497
they will be rendered in stead of escaped;
498-
* ``$icon``: (type: ``?string``) the full icon name (e.g. ``fa6regular:folder-open``)
498+
* ``$icon``: (type: ``?string``) the full icon name (e.g. ``fa6-regular:folder-open``)
499499
that is displayed next to the fieldset label.
500500

501501
.. note::
502502

503503
By default, EasyAdmin includes the full icon sets for `FontAwesome`_ icons
504-
(``fa6regular:``, ``fa6solid:`` and ``fa6brands:``), but you can
504+
(``fa6-regular:``, ``fa6-solid:`` and ``fa6-brands:``), but you can
505505
:ref:`use your own icon sets <icon-customization>`.
506506

507507
.. deprecated:: 4.16

0 commit comments

Comments
 (0)
Please sign in to comment.