mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-26 23:54:23 +01:00
Update documentation text
* remove the warning about custom errors and tooltips not being accessible ... they now mostly are * change the phrasing for server-side validation, so that *all* feedback (whether valid or invalid) should have `aria-describedby`
This commit is contained in:
parent
aa6a1ece56
commit
27e5375912
@ -6,10 +6,6 @@ group: forms
|
||||
toc: true
|
||||
---
|
||||
|
||||
{{< callout warning >}}
|
||||
We are aware that currently the client-side custom validation styles and tooltips are not accessible, since they are not exposed to assistive technologies. While we work on a solution, we'd recommend either using the server-side option or the default browser validation method.
|
||||
{{< /callout >}}
|
||||
|
||||
## How it works
|
||||
|
||||
Here's how form validation works with Bootstrap:
|
||||
@ -139,7 +135,7 @@ While these feedback styles cannot be styled with CSS, you can still customize t
|
||||
|
||||
We recommend using client-side validation, but in case you require server-side validation, you can indicate invalid and valid form fields with `.is-invalid` and `.is-valid`. Note that `.invalid-feedback` is also supported with these classes.
|
||||
|
||||
For invalid fields, ensure that the invalid feedback/error message is associated with the relevant form field using `aria-describedby` (noting that this attribute allows more than one `id` to be referenced, in case the field already points to additional form text).
|
||||
Ensure that the feedback/error message is associated with the relevant form field using `aria-describedby` (noting that this attribute allows more than one `id` to be referenced, in case the field already points to additional form text).
|
||||
|
||||
To fix [issues with border radius](https://github.com/twbs/bootstrap/issues/25110), input groups require an additional `.has-validation` class.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user