@m00rl0ck/a11y-widget 0.2.0 → 0.3.0

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.
Files changed (2) hide show
  1. package/README.md +23 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -56,6 +56,29 @@ npm install @m00rl0ck/a11y-widget
56
56
  <colorblind-adapt-widget></colorblind-adapt-widget>
57
57
  ```
58
58
 
59
+ #### Attributes
60
+
61
+ | Attribute | Type | Default | Description |
62
+ |-----------|------|---------|-------------|
63
+ | `lang` | `uk` / `en` / `de` | auto | UI language |
64
+
65
+ #### Test
66
+
67
+ The widget provides a 3-question colorblind test:
68
+ 1. **Red-green vs blue-yellow** color confusion
69
+ 2. **Number detection** (pseudo-ishihara)
70
+ 3. **Brightness comparison**
71
+
72
+ Results suggest your vision type and severity (`mild` / `moderate` / `severe`).
73
+
74
+ You can also skip the test and **select your type manually** with a severity level.
75
+
76
+ #### Example
77
+
78
+ ```html
79
+ <colorblind-adapt-widget lang="en"></colorblind-adapt-widget>
80
+ ```
81
+
59
82
  #### Supported vision types
60
83
 
61
84
  | Type | Description |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m00rl0ck/a11y-widget",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "private": false,
5
5
  "description": "Collection of lightweight accessibility web components for websites",
6
6
  "keywords": [