Deprecation of `Toolbar` in favor of new `Flex` component
Maintainer antworten meist innerhalb von 1 Tag
@adamkudrna arbeitet bereits daran.
Seit 10.3.2025.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
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?
- Vorherrschende Sprache
- TypeScript
- Sterne
- 23
- Forks
- 10
- Ø Merge
- 5 T. 14 Std.
- Gemergte PRs (30 T.)
- 9
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Kein Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus react-ui-org/react-ui
-
maintenance
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
react-ui-org/react-ui#784 ·
Maintainer antworten meist innerhalb von 1 Tag
-
accessibility bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
react-ui-org/react-ui#775 ·
Maintainer antworten meist innerhalb von 1 Tag
-
maintenance
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 63/100
react-ui-org/react-ui#753 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Supported versionsOffenmaintenance
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 42/100
react-ui-org/react-ui#780 ·
Maintainer antworten meist innerhalb von 1 Tag
-
feature
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 55/100
react-ui-org/react-ui#778 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in react-ui-org/react-ui
Ähnliche Issues
-
ArcGIS Maps SDK for JavaScript c-carousel calcite-design-tokens enhancement impact - p3 - not time sensitive needs triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Esri/calcite-design-system#15565 ·
Maintainer antworten meist innerhalb von 1 Tag
-
customer-reported question
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
Azure/azure-rest-api-specs#48017 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
microsoft/TypeScript#65370 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
ts-graphviz/ts-graphviz#1904 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
Maintainer antworten meist innerhalb von 1 Tag