-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Icon instance vs class in Input component. #1063
Comments
As well I would throw ID fields into the discussion. Do we really need them in library? Can't they be crafted in user land instead? |
We're using it across the product in quite a few places. Might be nice to have it in the library then. |
In that case maybe we could have ID fields as a separate component that extends |
AFAIK, ID fields are optional props that are crafted in userland, but filled in for a11y if users omit them. operational-ui/src/Input/Input.tsx Line 95 in 04839de
Passing an argument to
I like this. A new |
At the moment, there are 2
Input
props concerning icons:statusIcon
andplaceholderIcon
.statusIcon
is passed in as an icon instance, so that the user has more control over styling.placeholderIcon
is currently the same, for consistency within the component, but it would make more sense for its size, colour etc. to be fixed.The proposal is to remove
statusIcon
entirely fromInput
(Input
already has too many options, and the user could just position an icon next to the input) and changeplaceholderIcon
to a React component (type:IconComponentType
).The text was updated successfully, but these errors were encountered: