patternfly / patternfly/patternfly-react

Bug - Multiple File Upload - `progressVariant` is limited to "success|warning|danger" bar colors and the BLUE color is not possible

未关闭
#11,276 7 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

Stale
主要语言
TypeScript
星标
862
派生
392
平均合并
4 天 8 小时
30 天内合并 PR
9

描述

Describe the problem
The component https://v5-archive.patternfly.org/components/file-upload/multiple-file-upload does not allow to have BLUE bar colors as mentioned in the Design Guidelines https://v5-archive.patternfly.org/components/file-upload/multiple-file-upload/design-guidelines/

The guidelines indicate that the BLUE color can be used for "In Progress" statuses. However, the current progressVariant does not allow you to set a value so the progress bar becomes BLUE

How do you reproduce the problem?
Provide steps to reproduce. A codesandbox demonstrating the problem is appreciated.

Expected behavior

  • progressVariant should allow a value for BLUE or
  • If progressVariant=null|undefined then BLUE should be applied automatically

Is this issue blocking you?
List the workaround if there is one.

Screenshots
If applicable, add screenshots to help explain the issue.

What is your environment?

  • OS: Fedora 41
  • Browser Chrome

What is your product and what release date are you targeting?

Any other information?

贡献指南

打开贡献指南

从这里开始

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

调研方向

从 Multiple File Upload 组件开始,追踪其 progressVariant prop 如何控制进度条颜色。将组件行为与链接的设计指南进行比较,并确认是否适合添加 blue 值,或为 null 或 undefined 设置默认值。完成的标准是进行中的上传显示为蓝色,同时现有的 success、warning 和 danger 变体继续正常工作。

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

评估

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

把新 issue 发到你的邮箱

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