Skip to content
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

Merged
merged 6 commits into from
Aug 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,17 @@
<table class="vis-editor-agg-editor-ranges form-group" ng-show="vis.params.gauge.colorsRange.length">
<tr>
<th>
<label>From</label>
<label id="gaugeOptionsCustomRangeFrom">From</label>
</th>
<th colspan="2">
<label>To</label>
<label id="gaugeOptionsCustomRangeTo">To</label>
</th>
</tr>

<tr ng-repeat="range in vis.params.gauge.colorsRange track by $index">
<td>
<input
aria-labelledby="gaugeOptionsCustomRangeFrom"
ng-model="range.from"
type="number"
class="form-control"
Expand All @@ -117,6 +118,7 @@
</td>
<td>
<input
aria-labelledby="gaugeOptionsCustomRangeTo"
ng-model="range.to"
type="number"
class="form-control"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
<div>
<div class="vis-option-item">
<label>
<label for="visualizeBasicSettingsLegendPosition">
Legend Position
</label>
<select
id="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>
<label id="visualizeBasicSettingsShowTooltip">
<input type="checkbox" ng-model="vis.params.addTooltip">
Show Tooltip
</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,13 @@ class MetricPanelConfig extends Component {
<div
className={`kbnTabs__tab${selectedTab === 'data' && '-active' || ''}`}
onClick={() => this.switchTab('data')}
tabIndex="0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The value is all lowercase tabindex.

Copy link
Contributor

Choose a reason for hiding this comment

The 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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,19 @@ class TimeseriesPanelConfig extends Component {
<div
className={`kbnTabs__tab${selectedTab === 'data' && '-active' || ''}`}
onClick={() => this.switchTab('data')}
tabIndex="0"
>Data
</div>
<div
className={`kbnTabs__tab${selectedTab === 'options' && '-active' || ''}`}
onClick={() => this.switchTab('options')}
tabIndex="0"
>Panel Options
</div>
<div
className={`kbnTabs__tab${selectedTab === 'annotations' && '-active' || ''}`}
onClick={() => this.switchTab('annotations')}
tabIndex="0"
>Annotations
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class VisEditorVisualization extends Component {
if (autoApply) applyMessage = 'The changes will be automatically applied.';
const applyButton = (
<div className="vis_editor__dirty_controls">
<div className="vis_editor__dirty_controls-toggle-label">Auto Apply</div>
<div className="vis_editor__dirty_controls-toggle-label" id="tsvbAutoApply">Auto Apply</div>
<div className="vis_editor__dirty_controls-toggle">
<Toggle
defaultChecked={autoApply}
Expand Down
2 changes: 1 addition & 1 deletion src/core_plugins/metrics/public/components/vis_picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function VisPickerItem(props) {
<div className={iconClassName}>
<i className={`fa ${icon}`} />
</div>
<div className={labelClassName}>
<div className={labelClassName} tabIndex="0">
{ label }
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions src/core_plugins/table_vis/public/table_vis_params.html
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 for="datatableVisualizationPerPage">Per Page</label>
<input type="number" ng-model="vis.params.perPage" class="form-control" id="datatableVisualizationPerPage">
</div>

<div class="checkbox">
Expand Down Expand Up @@ -32,10 +32,10 @@
</div>

<div>
<label>Total function</label>
<label for="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" id="datatableVisualizationTotalFunction">
</select>
</div>
6 changes: 4 additions & 2 deletions src/core_plugins/tile_map/public/editors/tile_map.html
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 for="coordinateMapOptionsMapType">Map type</label>
<select
id="coordinateMapOptionsMapType"
name="agg"
class="form-control"
ng-model="vis.params.mapType"
ng-init="vis.params.mapType || vis.type.editorConfig.collections.mapTypes[0]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
ng-class="{ 'timelion-interval-custom-compact': interval === 'other' }"
ng-model="otherInterval"
><select
id="timelionInterval"
aria-label="Select interval"
class="kuiSelect timelion-interval-presets"
ng-options="intervalOption for intervalOption in intervalOptions"
ng-class="{ 'timelion-interval-presets-compact': interval === 'other'}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div>
<div class="form-group">
<label>Interval</label>
<label for="timelionInterval">Interval</label>
<div class="form-group">
<timelion-interval model="vis.params.interval"></timelion-interval>
</div>
Expand Down