code-corps / code-corps/code-corps-ember
Description of a category item does not change color on selection
- Lingua principale
- JavaScript
- Stelle
- 120
- Fork
- 75
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
# Problem
From https://github.com/code-corps/code-corps-ember/pull/1079#discussion_r102404681
>The `description` text is always using the `$text--light` (`#666`) color and does not switch to `$default-color` (`#08A8FC` when selected.
The PR introduced a minor bug. The `iconClass` is bound to the icon element alone and nothing is bound to the `p` element which holds the description. That means that the `p.selected` style can no longer apply.
The component itself should be bound to the `iconClass` class property and styles should be rewritten so they apply to both the icon and the `p` element.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia dal componente category-item e dagli stili interessati da PR #1079, quindi esamina come la proprietà iconClass è associata all'icona e come viene applicato lo stile all'elemento p della descrizione. Il lavoro è completo quando la selezione di un elemento cambia sia l'icona sia il testo della descrizione nel colore selezionato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- frontend
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 45/100