Comments (6)
I think that it would be nice and useful to go one step further and improve the general accessibility of the json editor by adding accessibility features when missing and improve/correct existing ones.
Starting with meaningful aria-labels
How can it be (more meaningful)
@schmunk42 what do you think?
from json-editor.
@germanbisurgi is this addressed by #1465?
from json-editor.
Yes
from json-editor.
Implemented in #1465
from json-editor.
I am still seeing the Accessibility error for select dropdown:
I am using the latest json-editor/json-editor version :"@json-editor/json-editor": "^2.13.2"
This is the schema and data i am using :
Schema JSON :
{
"title": "Sales Forecasting",
"type": "object",
"properties": {
"cardMapping": {
"type": "array",
"format": "table",
"title": "Card Variables Mapping",
"items": {
"type": "object",
"properties": {
"value": {
"type": "string",
"title": "Variable Name",
"enum": [
"ScenarioId",
"Name",
"Description",
"Status",
"RUN_DATE",
"SCENARIO_STATUS",
"SALES_FORECAST",
"BRAND_ID",
"SEC_ATTR1",
"SEC_ATTR2"
]
},
"label": {
"type": "string",
"title": "Display Name"
}
}
}
}
},
"options": {
"disable_edit_json": "true"
}
}
Data JSON :
{
"cardMapping": [
{
"value": "Name",
"label": "Scenario Name"
},
{
"value": "ScenarioId",
"label": "Scenario Id"
},
{
"value": "Status",
"label": "Status"
},
{
"value": "RUN_DATE",
"label": "Run Date"
},
{
"value": "SCENARIO_STATUS",
"label": "Scenario Status"
},
{
"value": "SALES_FORECAST",
"label": "Forecast Number"
}
]
}
Attaching the screenshot from interactive demo for your reference :
from json-editor.
@vishnu947 Starting from version 2.14.0, you can use accessibility features. In the screenshot below, you'll see a select input without a label because of the table format, but it has an aria-label attribute to fix this.
from json-editor.
Related Issues (20)
- Buttons in array editor are not setup correctly if there exists another enum-typed property for which the default value does not equal the first value HOT 1
- const validates objects and arrays incorrectly HOT 2
- Memory leak in empty method of array editor HOT 1
- Let downstream application decide about transpiling and polyfills
- date, time and datetime-local validation not working HOT 1
- Object and array editors + readOnly
- Simple way to "disable" enum menu items or disallow them? HOT 1
- Using a filter in large table HOT 1
- A way to disable some properties on build. HOT 1
- Array copy item with UUID: first copy has a duplicated UUID HOT 2
- Missing option to set a default value using a template / templates render fields as read-only HOT 2
- 'copyRow' callback never called / not documented? HOT 1
- Selectize, Choices and Select2 do not work with dynamic enums / watched properties HOT 2
- Templates with random return value lead to exception 'to many recursions' HOT 1
- "rating" format value isn't submitted HOT 1
- All object category tabs are displayed when properties are toggled HOT 1
- Large Arrays - Load More / Loading feature
- Editor showing right next editor's error message HOT 1
- Dynamically updating editor schema HOT 1
- disable array controls panel fail when has controls
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json-editor.