@pingux/astro 2.153.0 → 2.154.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -36,4 +36,8 @@ These keys provide additional functionality to the component.
|
|
|
36
36
|
|
|
37
37
|
This component uses the following attributes to assist screen readers:
|
|
38
38
|
- The input component uses the **`aria-labelledby`** attribute to reference the label.
|
|
39
|
-
- The two icon buttons each use the **`aria-controls`** attribute with the input ID and the **`aria-label`** attribute to provide an accessible name.
|
|
39
|
+
- The two icon buttons each use the **`aria-controls`** attribute with the input ID and the **`aria-label`** attribute to provide an accessible name.
|
|
40
|
+
|
|
41
|
+
#### Note
|
|
42
|
+
|
|
43
|
+
For NumberField, the onChange callback is triggered when the increment and decrement buttons are pressed, or upon focus shifting away from the input after typing a value with the keyboard. This is because of internal validation which needs to occur when typing. (Source: [React Aria NumberField](https://react-spectrum.adobe.com/react-aria/useNumberField.html#controlled))
|
|
@@ -36,4 +36,8 @@ These keys provide additional functionality to the component.
|
|
|
36
36
|
|
|
37
37
|
This component uses the following attributes to assist screen readers:
|
|
38
38
|
- The input component uses the **`aria-labelledby`** attribute to reference the label.
|
|
39
|
-
- The two icon buttons each use the **`aria-controls`** attribute with the input ID and the **`aria-label`** attribute to provide an accessible name.
|
|
39
|
+
- The two icon buttons each use the **`aria-controls`** attribute with the input ID and the **`aria-label`** attribute to provide an accessible name.
|
|
40
|
+
|
|
41
|
+
#### Note
|
|
42
|
+
|
|
43
|
+
For NumberField, the onChange callback is triggered when the increment and decrement buttons are pressed, or upon focus shifting away from the input after typing a value with the keyboard. This is because of internal validation which needs to occur when typing. (Source: [React Aria NumberField](https://react-spectrum.adobe.com/react-aria/useNumberField.html#controlled))
|