Add a prop for updating the Media Upload label

未关闭
#210 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

@itsajay1029 已经在做这个了。

开始于 2023年5月27日。

评估

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

调研方向

从 components/media-toolbar/index.js#L45 开始,当前位置标识出了当前的“Add Image”标签。跟踪组件接收 props 的方式,并更新其接口,使调用方可以配置 Media Upload 标签;完成的标准是调用方可以提供自定义标签,而不是使用默认标签。

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

描述

[Component] Image [Type] Enhancement
Is your enhancement related to a problem? Please describe.

I would like to update the Media Upload label via props, currently its just 'Add Image' - https://github.com/10up/block-components/blob/3f113d3d8de843f0cbe0f32cd34764d78486fcc5/components/media-toolbar/index.js#L45

Designs

No response

Describe alternatives you've considered

No response

Code of Conduct
  • I agree to follow this project's Code of Conduct
主要语言
TypeScript
星标
330
派生
54
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

10up/block-components 的其他 Issue

查看 10up/block-components 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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