Replies: 4 comments 2 replies
-
The flatteningAt present, each component plus foundations is individually installable and upgradable. This was originally intended to add flexibility to how consumers upgrade components. However, because of the way all the components depend on a fixed version of foundations, it means that upgrading a single component entails upgrading all of them anyway. To make life easier for developers, we should flatten all the packages down into a single package: The component and foundations APIs should remain the same, the only difference will be the name of the module from which they would be imported. So instead of: import { Button } from ‘@guardian/src-button’
import { TextInput } from ‘@guardian/src-text-input’
import { text } from ‘@guardian/src-foundations/palette’ You would be able to write: import { Button, TextInput } from ‘@guardian/source’
import { text } from ‘@guardian/source/palette’ Packages would still be individually installable for v4.0.0, but this method would be deprecated. |
Beta Was this translation helpful? Give feedback.
-
Icon space, size and positioningResize icons to make better use of the space of the viewbox. Include a consistent “safe area” at the edge of the icon viewbox. This will ensure flexibility for finding the best positioning in a layout. Reposition icons within the viewbox to provide better balance and positioning when used in conjunction with other icons or inline with text. |
Beta Was this translation helpful? Give feedback.
-
Radio Groups required by defaultRadio groups should be required fields by default. This will make it consistent with other input types. Radio groups may be flagged as optional. Doing so would add the "Optional" text after the label. |
Beta Was this translation helpful? Give feedback.
-
Support ref forwardingFrom #645: Is your feature request related to a problem? Please describe. The common way to do this in React is to use ref (ex: Instead other UI libs have used |
Beta Was this translation helpful? Give feedback.
-
Hi all
I thought this would be a good place to put candidate ideas for v4.0.0 of Source. If you have any others, please share them below. Later, we'll probably invoke some mechanism for determining which of these ideas is most pressing and hence what will actually go into v4.0.0
If you have ideas, please add one post per idea, so we can have a permalink to each idea.
Candidates
Beta Was this translation helpful? Give feedback.
All reactions