code-corps / code-corps/code-corps-ember
Description of a category item does not change color on selection
- Vorherrschende Sprache
- JavaScript
- Sterne
- 120
- Forks
- 75
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
# 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.
Beitragsleitfaden
Rechercherichtung
Beginne mit der category-item-Komponente und den von PR #1079 betroffenen Styles. Untersuche anschließend, wie die iconClass-Eigenschaft an das Icon gebunden ist und wie das description-p-Element gestylt ist. Die Arbeit ist abgeschlossen, wenn die Auswahl eines Elements sowohl das Icon als auch den Beschreibungstext in die ausgewählte Farbe ändert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript
- Bereich
- frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 45/100