--- id: bad87fee1348bd9aedc08845 title: Aggiungere le icone di Font Awesome a tutti i bottoni challengeType: 0 forumTopicId: 16637 required: - link: 'https://use.fontawesome.com/releases/v5.8.1/css/all.css' raw: true dashedName: add-font-awesome-icons-to-all-of-our-buttons --- # --description-- Font Awesome è una comoda libreria di icone. Queste icone possono essere font web o grafica vettoriale. Queste icone sono trattate proprio come i caratteri. Puoi specificare la loro dimensione usando i pixel, e assumeranno la dimensione del carattere degli elementi HTML genitori. # --instructions-- Usa Font Awesome per aggiungere un'icona `info-circle` al tuo pulsante info e un'icona `trash` al tuo pulsante di eliminazione. **Nota:** L'elemento `span` è un'alternativa accettabile all'elemento `i` per le istruzioni sottostanti. # --hints-- Dovresti aggiungere un pulsante `` all'interno dell'elemento `info`. ```js assert( $('.btn-info > i').is('.fas.fa-info-circle') || $('.btn-info > span').is('.fas.fa-info-circle') ); ``` Dovresti aggiungere un `` all'interno del tuo bottone `delete`. ```js assert( $('.btn-danger > i').is('.fas.fa-trash') || $('.btn-danger > span').is('.fas.fa-trash') ); ``` Ognuno dei tuoi elementi `i` dovrebbe avere un tag di chiusura e `` dovrebbe essere presente nel tuo bottone `like`. ```js assert( code.match(/<\/i>|<\/span/g) && code.match(/<\/i|<\/span>/g).length > 2 && ($('.btn-primary > i').is('.fas.fa-thumbs-up') || $('.btn-primary > span').is('.fas.fa-thumbs-up')) ); ``` # --seed-- ## --seed-contents-- ```html

CatPhotoApp

A cute orange cat lying on its back.
Three kittens running towards the camera.

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
``` # --solutions-- ```html

CatPhotoApp

A cute orange cat lying on its back.
Three kittens running towards the camera.

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
```