Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Description of a category item does not change color on selection

未关闭
#1,092 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
停滞
技术栈
javascript
领域
frontend

调研方向

从 category-item 组件以及受 PR #1079 影响的样式开始,然后检查 iconClass 属性如何绑定到图标,以及 description p 元素如何设置样式。当选择一个项目时,图标和描述文本都会变为所选颜色,即表示工作完成。

由索引模型根据 Issue 内容生成。

描述

bug Difficulty: Easy

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.

主要语言
JavaScript
星标
120
派生
75
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

code-corps/code-corps-ember 的其他 Issue

查看 code-corps/code-corps-ember 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。