You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blazor/otp-input/accessibility.md
+18-17Lines changed: 18 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,40 +9,40 @@ documentation: ug
9
9
10
10
# Accessibility in Blazor OTP Input component
11
11
12
-
The Blazor OTP Input component followed the accessibility guidelines and standards, including [ADA](https://www.ada.gov/), [Section 508](https://www.section508.gov/), [WCAG 2.2](https://www.w3.org/TR/WCAG22/) standards, and [WCAG roles](https://www.w3.org/TR/wai-aria/#roles) that are commonly used to evaluate accessibility.
12
+
The Blazor OTP Input component follows established accessibility guidelines and standards, including [ADA](https://www.ada.gov/), [Section 508](https://www.section508.gov/), [WCAG 2.2](https://www.w3.org/TR/WCAG22/), and [WCAG roles](https://www.w3.org/TR/wai-aria/#roles) that are commonly used to evaluate accessibility.
13
13
14
14
The accessibility compliance for the Blazor OTP Input component is outlined below.
<div><imgsrc="https://cdn.syncfusion.com/content/images/landing-page/yes.png"alt="Yes"> - All features of the component meet the requirement.</div>
32
+
<div><imgsrc="https://cdn.syncfusion.com/content/images/landing-page/yes.png"alt="Supported"> - All features of the component meet the requirement.</div>
33
33
34
-
<div><imgsrc="https://cdn.syncfusion.com/content/images/landing-page/intermediate.png"alt="Intermediate"> - Some features of the component do not meet the requirement.</div>
34
+
<div><imgsrc="https://cdn.syncfusion.com/content/images/landing-page/intermediate.png"alt="Partially supported"> - Some features of the component do not fully meet the requirement.</div>
35
35
36
-
<div><imgsrc="https://cdn.syncfusion.com/content/images/landing-page/no.png"alt="No"> - The component does not meet the requirement.</div>
36
+
<div><imgsrc="https://cdn.syncfusion.com/content/images/landing-page/no.png"alt="Not supported"> - The component does not meet the requirement.</div>
37
37
38
38
## WAI-ARIA attributes
39
39
40
40
The following ARIA attributes are used in the OTP Input component:
41
41
42
42
| Attributes | Purpose |
43
43
| ------------ | ----------------------- |
44
-
|`role=group`|Attributes used to form a collection of items.|
45
-
|`aria-label`|Attributes provides the text label for the OTP Inputs. |
44
+
|`role=group`|Applied to the container to group the OTP input fields. |
45
+
|`aria-label`|Provides a text label for the OTP input fields for assistive technologies. |
46
46
47
47
## Keyboard interaction
48
48
@@ -51,7 +51,7 @@ The following keyboard shortcuts are supported by the OTP Input component.
51
51
| Windows | Mac | Actions |
52
52
| --- | --- | --- |
53
53
| <kbd>←</kbd> | <kbd>←</kbd> | Focuses the previous input in the OTP. |
54
-
| <kbd>→</kbd> | <kbd>→</kbd> | Focuses the next input in OTP |
54
+
| <kbd>→</kbd> | <kbd>→</kbd> | Focuses the next input in the OTP.|
55
55
| <kbd>Tab</kbd> | <kbd>Tab</kbd> | Moves the initial focus and shifts focus to the next input of the OTP. |
56
56
| <kbd>Shift</kbd> + <kbd>Tab</kbd> | <kbd>⇧</kbd> + <kbd>Tab</kbd> | Moves the focus to the previous input of the OTP. |
57
57
@@ -61,7 +61,7 @@ The following keyboard shortcuts are supported by the OTP Input component.
61
61
62
62
## HtmlAttributes
63
63
64
-
HtmlAttributes allow you to specify additional HTML attributes to be applied to the OTP input component.
64
+
HtmlAttributes allow specifying additional HTML attributes to be applied to the OTP input component for improved semantics and accessibility.
65
65
66
66
You can pass HTML attributes as key-value pairs to the [HtmlAttributes](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfOtpInput.html#Syncfusion_Blazor_Inputs_SfOtpInput_HtmlAttributes) property.
67
67
@@ -82,8 +82,9 @@ You can pass HTML attributes as key-value pairs to the [HtmlAttributes](https://
82
82
83
83
## AriaLabels
84
84
85
-
AriaLabels define the ARIA-label attribute for each input field in the OTP input component. ARIA-labels enhance accessibility by providing descriptive labels for screen reader users, improving the user experience for individuals with disabilities.
86
-
You can provide an array of strings as ARIA-labels to the [AriaLabels](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfOtpInput.html#Syncfusion_Blazor_Inputs_SfOtpInput_AriaLabels) property. Each string corresponds to the ARIA-label attribute for the respective input field in the OTP input component.
85
+
AriaLabels define the aria-label attribute for each input field in the OTP input component. aria-label values enhance accessibility by providing descriptive labels for screen reader users.
86
+
87
+
You can provide an array of strings as aria-label values to the [AriaLabels](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfOtpInput.html#Syncfusion_Blazor_Inputs_SfOtpInput_AriaLabels) property. Each string corresponds to the aria-label attribute for the respective input field in the OTP input component.
Copy file name to clipboardExpand all lines: blazor/otp-input/appearance.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,11 +9,11 @@ documentation: ug
9
9
10
10
# Appearance in Blazor OTP Input component
11
11
12
-
You can also customize the appearance of OTP Input component.
12
+
Customize the appearance of the OTP input component, including input length, disabled state, and visual styles.
13
13
14
14
## Setting input length
15
15
16
-
You can specify the length of OTP by using the [Length](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfOtpInput.html#Syncfusion_Blazor_Inputs_SfOtpInput_Length) property. The default value is `4`.
16
+
Specify the length of the OTP by using the [Length](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfOtpInput.html#Syncfusion_Blazor_Inputs_SfOtpInput_Length) property. The default value is `4`. This value determines the number of input fields rendered for the OTP.
17
17
18
18
```cshtml
19
19
@@ -27,7 +27,7 @@ You can specify the length of OTP by using the [Length](https://help.syncfusion.
27
27
28
28
## Disable inputs
29
29
30
-
You can disable the OTP Input component by using the [Disabled](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfOtpInput.html#Syncfusion_Blazor_Inputs_SfOtpInput_Disabled) property. By default the value is `false`.
30
+
Disable the OTP Input component by using the [Disabled](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfOtpInput.html#Syncfusion_Blazor_Inputs_SfOtpInput_Disabled) property. By default, the value is `false`. When disabled, the input fields are non-interactive and display the disabled visual style.
31
31
32
32
```cshtml
33
33
@@ -41,9 +41,9 @@ You can disable the OTP Input component by using the [Disabled](https://help.syn
41
41
42
42
## CssClass
43
43
44
-
You can customize the appearance of the OTP Input component, such as by changing its colors, fonts, sizes or other visual aspects by using the [CssClass](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfOtpInput.html#Syncfusion_Blazor_Inputs_SfOtpInput_CssClass) property.
44
+
Customize the appearance of the OTP Input componentby changing colors, fonts, sizes, and other visual aspects by using the [CssClass](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfOtpInput.html#Syncfusion_Blazor_Inputs_SfOtpInput_CssClass) property.
45
45
46
-
The OTP input component supports the following predefined styles that can be defined using the `CssClass` property. You can customize by replacing the `CssClass`property with the below defined class names.
46
+
The OTP input component supports the following predefined styles that can be applied using the `CssClass` property. Replace the `CssClass`value with one of the following class names to apply the corresponding style.
47
47
48
48
| cssClass | Description |
49
49
| -------- | -------- |
@@ -59,4 +59,4 @@ The OTP input component supports the following predefined styles that can be def
59
59
60
60
```
61
61
62
-

62
+

Copy file name to clipboardExpand all lines: blazor/otp-input/events.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,11 +9,11 @@ documentation: ug
9
9
10
10
# Events in Blazor OTP Input component
11
11
12
-
This section describes the OTP Input events that will be triggered when appropriate actions are performed. The following events are available in the OTP Input component.
12
+
This section describes the OTP Input events triggered by user interaction and component lifecycle. The following events are available in the OTP Input component.
13
13
14
14
## Created
15
15
16
-
The OTP Input component triggers the [Created](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfOtpInput.html#Syncfusion_Blazor_Inputs_SfOtpInput_Created) event when the component rendering is completed.
16
+
The OTP Input component triggers the [Created](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfOtpInput.html#Syncfusion_Blazor_Inputs_SfOtpInput_Created) event when component rendering is completed.
17
17
18
18
```cshtml
19
19
@@ -30,9 +30,9 @@ The OTP Input component triggers the [Created](https://help.syncfusion.com/cr/bl
30
30
31
31
```
32
32
33
-
## OnFocus
33
+
## OnFocus
34
34
35
-
The OTP Input component triggers the [OnFocus](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfOtpInput.html#Syncfusion_Blazor_Inputs_SfOtpInput_OnFocus) event when the OTP Input is focused. The [OtpFocusInEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.OtpFocusInEventArgs.html)passed as an event argument provides the details of the focus event.
35
+
The OTP Input component triggers the [OnFocus](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfOtpInput.html#Syncfusion_Blazor_Inputs_SfOtpInput_OnFocus) event when an OTP input field receives focus. The [OtpFocusInEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.OtpFocusInEventArgs.html) event argument provides details about the focus-in action, such as the focused input.
36
36
37
37
```cshtml
38
38
@@ -51,7 +51,7 @@ The OTP Input component triggers the [OnFocus](https://help.syncfusion.com/cr/bl
51
51
52
52
## OnBlur
53
53
54
-
The OTP Input component triggers the [OnBlur](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfOtpInput.html#Syncfusion_Blazor_Inputs_SfOtpInput_OnBlur) event when the OTP Input is focused out. The [OtpFocusOutEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.OtpFocusOutEventArgs.html)passed as an event argument provides the details of the blur event.
54
+
The OTP Input component triggers the [OnBlur](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfOtpInput.html#Syncfusion_Blazor_Inputs_SfOtpInput_OnBlur) event when focus leaves an OTP input field or the component. The [OtpFocusOutEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.OtpFocusOutEventArgs.html) event argument provides details about the blur action, such as the input that lost focus.
55
55
56
56
```cshtml
57
57
@@ -70,7 +70,7 @@ The OTP Input component triggers the [OnBlur](https://help.syncfusion.com/cr/bla
70
70
71
71
## OnInput
72
72
73
-
The OTP Input component triggers the [OnInput](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfOtpInput.html#Syncfusion_Blazor_Inputs_SfOtpInput_OnInput) event when the value of each OTP Input is changed. The [OtpInputEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.OtpInputEventArgs.html)passed as an event argument provides the details of the each value is changed.
73
+
The OTP Input component triggers the [OnInput](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfOtpInput.html#Syncfusion_Blazor_Inputs_SfOtpInput_OnInput) event when the value of an individual OTP input field changes. The [OtpInputEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.OtpInputEventArgs.html) event argument provides details about the change, such as the input index and the current value.
74
74
75
75
```cshtml
76
76
@@ -85,4 +85,4 @@ The OTP Input component triggers the [OnInput](https://help.syncfusion.com/cr/bl
0 commit comments