Deprecation of `Toolbar` in favor of new `Flex` component
维护者通常 1 天内回复
@adamkudrna 已经在做这个了。
开始于 2025年3月10日。
评估
这个 Issue 还没有评估数据。
描述
Today we discussed that Toolbar and ToolbarGroup have dense prop (and that we would like to get rid of ToolbarItem in future if possible). When we look at Grid component, we can see that there are columnGap and rowGap props available. We decided we want to deprecate dense prop and replace it with gap prop. If we want to match Grid props, I would suggest to have columnGap and rowGap instead of gap as it would be better for end-user and we currently have scenarios in which those two gaps can differs.
I thought I would be able to introduce those props easily, but I found out that it would be better to refactor whole Toolbar component and its subcomponents. Why? If you compare Toolbar and Grid props, you can spot the difference:
Grid:
Toolbar:
Grid is far more advanced than Toolbar is. It would be better to abstract logic from Grid and use it with Toolbar. That would cleanToolbar code, but it would require the change of shape of the props as Grid allows to specify value per breakpoint.
If we touch the props, it would be also good to unify naming to have same props for Grid and for Toolbar as they are same on CSS level.
That being said, this would require far more work than simply deprecating dense prop. At this stage, it would be better (in my opinion) to deprecate whole Toolbar component and to finally introduce Flex component we wanted to introduce anyway.
We wanted Flex component and this is the time we can solve more problems with it. We should leave Toolbar deprecated until 1.0.0 is released for smoother transition.
This is my recommendation after quick attempt to solve dense-related issue. What do you think @adamkudrna @mbohal?
- 主要语言
- TypeScript
- 星标
- 23
- 派生
- 10
- 平均合并
- 5 天 12 小时
- 30 天内合并 PR
- 9
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
react-ui-org/react-ui 的其他 Issue
-
maintenance
难度 2/5 1-3 小时 新手友好度 78/100
react-ui-org/react-ui#784 ·
维护者通常 1 天内回复
-
accessibility bug
难度 2/5 1-3 小时 新手友好度 68/100
react-ui-org/react-ui#775 ·
维护者通常 1 天内回复
-
maintenance
难度 2/5 1-3 小时 新手友好度 63/100
react-ui-org/react-ui#753 · 1 条评论 ·
维护者通常 1 天内回复
-
Playwright container fails `devEngines` check again because its image does not pin Node.js可能已有人在做 @bedrich-schindler 今天认领。 未关闭bug maintenance
难度 4/5 1-2 天 新手友好度 25/100
react-ui-org/react-ui#782 ·
维护者通常 1 天内回复
-
maintenance
难度 4/5 3-5 天 新手友好度 42/100
react-ui-org/react-ui#780 ·
维护者通常 1 天内回复
查看 react-ui-org/react-ui 的全部 Issue
相似的 Issue
-
[fullsend] E2E: scorecard — filecheck GitLab entity metrics unavailable due to initialDelay timing未关闭e2e-failure ready-to-code
难度 2/5 1-3 小时 新手友好度 75/100
redhat-developer/rhdh-plugin-export-overlays#4698 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
devswha/herdr-web-ui#2884 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
b:minor bug
难度 2/5 1-3 小时 新手友好度 78/100
software-mansion/argent#1771 ·
维护者通常 1 天内回复
-
Resources: New palettes of Xiamen可能已有人在做 @rmt-svc 今天认领。 未关闭resources
难度 1/5 1-3 小时 新手友好度 74/100
railmapgen/rmg-palette#2491 ·
维护者通常 4 天内回复