-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Validate values in the cell and table properties UI #6131
Comments
An afterthought:
So what we probably need is a more advanced (also time–consuming) approach where:
|
There's enter alongisde
It looks like OK approach in terms of no model spamming with wrong values and the error will be shown eventually. It also looks like less work from what we have ATM if I'm right. |
I'd rather expect Enter to submit the entire form. But... who knows? |
@oleq I don't have the full context here, but is it possible to debounce its appearance with CSS only? Just as if you'd have animation that does nothing first second and does a soft fadein after this time? This way it could be all based on CSS alone, because as you continue to type and the error is gone, DOM is changed and this CSS effect would no longer be relevant? |
It can be postponed visually in CSS, but the screen reader will read it right away. So this is an issue, could be screen reader users will just flip out (imagine a new error after each keypress :P). Also, I'm not sure how will it work when the error changes. TBH, I can't picture all the possible scenarios in my head, so some research will be needed first. But yeah, it could be we're onto something here @mlewand! |
@oleq Oh, you're right I didn't took accessibility into consideration, so we need to be careful with DOM change timing - unless screen readers do throttle these notifications internally. Would require checking. |
Notes from the F2F meeting:
|
Feature: Added styles for rich error messages in the table and table cell properties forms (see ckeditor/ckeditor5#6131).
Internal: Table and table cell property form fields should be validated. Closes ckeditor/ckeditor5#6131.
📝 Provide a description of the new feature
A follow-up of #6049.
ATM correct or wrong (broken, incomplete, etc.), they go straight to the model. We need validators that will display errors next to the fields and prevent that.
ATM changes go to the model on keydown (or dropdown value change) which may affect collaboration in the wrong way (too many changes). However, when validation will work, this problem will (probably, see my comment below) be negligible.
Some cases to consider:
Related topic: form creator/generator.
If you'd like to see this feature implemented, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: