-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visualize Accessibility Issues #13428
Changes from 4 commits
0b1d3a8
70ca2fc
68c40b0
3965ac7
09671a1
9a48a44
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
<div> | ||
<div class="vis-option-item"> | ||
<label> | ||
<label id="visualizeBasicSettingsLegendPosition"> | ||
Legend Position | ||
</label> | ||
<select | ||
aria-labelledby="visualizeBasicSettingsLegendPosition" | ||
class="form-control" | ||
ng-model="vis.params.legendPosition" | ||
ng-options="position.value as position.text for position in vis.type.editorConfig.collections.legendPositions" | ||
> | ||
</select> | ||
</div> | ||
<div class="vis-option-item"> | ||
<label> | ||
<input type="checkbox" ng-model="vis.params.addTooltip"> | ||
<label id="visualizeBasicSettingsShowTooltip"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You shouldn't need this at all. Since the |
||
<input type="checkbox" ng-model="vis.params.addTooltip" aria-labelledby="visualizeBasicSettingsShowTooltip"> | ||
Show Tooltip | ||
</label> | ||
</div> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,11 +85,13 @@ class MetricPanelConfig extends Component { | |
<div | ||
className={`kbnTabs__tab${selectedTab === 'data' && '-active' || ''}`} | ||
onClick={() => this.switchTab('data')} | ||
tabIndex="0" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The value is all lowercase There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Forget this, I haven't noticed, this was a React component. |
||
>Data | ||
</div> | ||
<div | ||
className={`kbnTabs__tab${selectedTab === 'options' && '-active' || ''}`} | ||
onClick={() => this.switchTab('options')} | ||
tabIndex="0" | ||
>Panel Options | ||
</div> | ||
</div> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<div class="form-group"> | ||
<label>Per Page</label> | ||
<input type="number" ng-model="vis.params.perPage" class="form-control"> | ||
<label id="datatableVisualizationPerPage">Per Page</label> | ||
<input type="number" ng-model="vis.params.perPage" class="form-control" for="datatableVisualizationPerPage"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
</div> | ||
|
||
<div class="checkbox"> | ||
|
@@ -32,10 +32,10 @@ | |
</div> | ||
|
||
<div> | ||
<label>Total function</label> | ||
<label id="datatableVisualizationTotalFunction">Total function</label> | ||
<select ng-disabled="!vis.params.showTotal" | ||
class="form-control" | ||
ng-model="vis.params.totalFunc" | ||
ng-options="x for x in totalAggregations"> | ||
ng-options="x for x in totalAggregations" for="datatableVisualizationTotalFunction"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
</select> | ||
</div> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
<!-- vis type specific options --> | ||
<div class="form-group"> | ||
<label>Map type</label> | ||
<select name="agg" | ||
<label id="coordinateMapOptionsMapType">Map type</label> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a reason, you left this with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. my mistake, an oversight on my part, changed this now. |
||
<select | ||
aria-labelledby="coordinateMapOptionsMapType" | ||
name="agg" | ||
class="form-control" | ||
ng-model="vis.params.mapType" | ||
ng-init="vis.params.mapType || vis.type.editorConfig.collections.mapTypes[0]" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
ng-class="{ 'timelion-interval-custom-compact': interval === 'other' }" | ||
ng-model="otherInterval" | ||
><select | ||
aria-labelledby="timelionInterval" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You could use Also I think this directive is used inside of timelion where there isn't a label currently. Since we still might want to use that directive in both places and make it accessible in both places, in this case we might be better adding an |
||
class="kuiSelect timelion-interval-presets" | ||
ng-options="intervalOption for intervalOption in intervalOptions" | ||
ng-class="{ 'timelion-interval-presets-compact': interval === 'other'}" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case, I would prefer giving the
select
anid
and thelabel
afor
attribute with that value.That way all users would benefit, since the label is also outside the accessibility (i.e. in the regular DOM) linked to the select box, and you can e.g. click on the label to jump to the input (not working for select, but that's another topic).