Deprecation of `Toolbar` in favor of new `Flex` component
Maintainer thường phản hồi trong vòng 1 ngày
@adamkudrna đang làm issue này rồi.
Từ ngày 10/3/2025.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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?
- Ngôn ngữ chính
- TypeScript
- Star
- 23
- Fork
- 10
- Merge trung bình
- 5 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 9
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của react-ui-org/react-ui
-
maintenance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
react-ui-org/react-ui#784 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
accessibility bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
react-ui-org/react-ui#775 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Update ESLint to version 10Đang mởmaintenance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
react-ui-org/react-ui#753 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Playwright container fails `devEngines` check again because its image does not pin Node.jsCó thể đã có người làm @bedrich-schindler đã nhận hôm nay. Đang mởbug maintenance
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 25/100
react-ui-org/react-ui#782 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Supported versionsĐang mởmaintenance
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
react-ui-org/react-ui#780 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của react-ui-org/react-ui
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
vercel-labs/durable-harness#53 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Redesign tab bars ignore clicks on Linux: hidden chat layers keep window drag regionsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area/docs area/ui enhancement
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
melgarafael/DeskcommCRM#4098 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug ready-for-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
kerti/balances-v2#801 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
lesson-submission pending-review
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
Ikalus1988/MisakaNet#4510 ·
Maintainer thường phản hồi trong vòng 1 ngày