-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Read only form controls #2177
Comments
awaiting specification. |
i have a couple of questions for implementation:
|
From my understanding the implementations should follow the standard |
Thanks everyone for the thoughts and discussion. I've updated the original issue description with spec, and summarized all the comments here. This issue is now ready for development! |
NoteMoving issue back to
|
should we afford for any kind of status messages/icon/tooltip/etc as part of the pattern for i can see the case for product teams being responsible for this, but if we have a particular suggested pattern for how to handle that hinting, we could build it in. (e.g. a lock icon in in the field that can launch a tooltip) |
Lock icon is a good idea @lovemecomputer ! Lemme try it out... |
@lee-chase ah i see where the confusion is. this is a practical UX problem. the "light" background is not intended to match the default background. the intended use of the "light" setting is an alternate setting for when the form item is on a background that is not the default. meaning: if the white theme is used, then a gray10 background will be applied to the component by default. however, there are times where the component is placed on a gray10 background (rather than white) and contrast is still required to differentiate the background color of the component from its surroundings. the alternate "light" version will instead have a white background to create the appropriate contrast. does that make sense? |
Makes sense @quarryboy, although I suspect as a result that 'light' will have been misused in places. |
@lee-chase i feel like we could’ve put money on the line. 😉 It’s almost a guarantee that bit has been misused! |
NOTE:
|
@quarryboy The toggle button is offset by 1px towards the center in read only (off and on) size 'md'. Is that an accident? Also you lose the check mark on the 'sm' size, can you confirm this is deliberate? |
tbh I like it, but if it is intentional I think I'd expect the light source to remain consistent between the two states. :) |
@lee-chase i think a call between Mike Eacker and i would solve quite a bit rather than discussing so many threads in here. regarding the toggle button: this may also be better for an in-person call. are you asking about redesigning the toggles for the enabled state as well as what i'm seeing in the image above is not the read-only design. |
@shixiedesign @tay1orjones I see that this is being resolved in the code, but I do not see any guidance on the design site. Can someone point me to the final design guidance for read-only inputs? |
Here is the epic tracking the work @JordanWSmith15. You can also find the pattern work here as a PR, waiting to be approved and merged. |
Closing this issue in favor of the epic I mentioned above. |
A read only variant of Text input is suggested here: carbon-design-system/carbon-contribution#13 (comment)
Overview of component (updated May 13)
not-editable
icon, icon in PR Addedit--off
icon svg & update metadata.yml #2710not-editable
icon, to provide reason for the field being read-onlyreadonly
attributeDesign spec (updated May 13)
In context explorations:
The text was updated successfully, but these errors were encountered: