-
Notifications
You must be signed in to change notification settings - Fork 844
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
[EuiMarkdownEditor] Enhancement request: Disabled state #5129
Comments
@i-a-n a few things that I'm thinking:
So we need to figure out first what's the best design/pattern of using the comment list + markdown editor + "can't add comments". Once we figure it out we can bring the comment list + markdown editor pattern into EUI and if we found necessary we improve the markdown editor to allow the |
@miukimiu thanks for taking a look at this!
... immediately after the user clicks the button, the button goes into a disabled/loading state, and in our current production app, the markdown editor does as well. it's very obvious to the user what's happening. it's been a useful way for users to know they can't edit their own comments as they're being posted, and has been successful in Dream Machine so far. I could also imagine other scenarios where we'd want to disable the markdown editor the same way we are able to disable a textarea. following oh, and, I don't personally think |
Got it! 👍🏽 I thought the "action" could take more time. Like "We're investigating this case and it will take time and until there you can't add any comment". So I'll go back to Figma and design a few states that we're missing. Once the design is finished I'll share it with you. |
In our use-case for the markdown editor, we'd prefer if we could pass an
isDisabled
state to the component, giving us the ability to disable the textarea while a comment is posted or other actions are pending in the app, similar to theEuiTextArea
disabled state. Is this something that might be viable/desired for this component?The text was updated successfully, but these errors were encountered: