Skip to content

Commit

Permalink
Adding better aria-labels for global search and field search in Lens (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Michail Yasonik authored Jan 26, 2021
1 parent 3938fa6 commit eaf6831
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,9 @@ export function SearchBar({
inputRef: setSearchRef,
compressed: true,
className: 'kbnSearchBar',
'aria-label': i18n.translate('xpack.globalSearchBar.searchBar.placeholder', {
defaultMessage: 'Search Elastic',
}),
placeholder: i18n.translate('xpack.globalSearchBar.searchBar.placeholder', {
defaultMessage: 'Search Elastic',
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,9 @@ export const InnerIndexPatternDataPanel = function InnerIndexPatternDataPanel({
onChange={(e) => {
setLocalState({ ...localState, nameFilter: e.target.value });
}}
aria-label={i18n.translate('xpack.lens.indexPatterns.filterByNameAriaLabel', {
defaultMessage: 'Search fields',
aria-label={i18n.translate('xpack.lens.indexPatterns.filterByNameLabel', {
defaultMessage: 'Search field names',
description: 'Search the list of fields in the index pattern for the provided text',
})}
aria-describedby={fieldSearchDescriptionId}
/>
Expand Down
1 change: 0 additions & 1 deletion x-pack/plugins/translations/translations/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -11431,7 +11431,6 @@
"xpack.lens.indexPatterns.clearFiltersLabel": "名前とタイプフィルターを消去",
"xpack.lens.indexPatterns.fieldFiltersLabel": "フィールドフィルター",
"xpack.lens.indexPatterns.fieldSearchLiveRegion": "{availableFields}使用可能な{availableFields, plural, other {フィールド}}。{emptyFields}空の{emptyFields, plural, other {フィールド}}。 {metaFields}メタ{metaFields, plural, other {フィールド}}。",
"xpack.lens.indexPatterns.filterByNameAriaLabel": "検索フィールド",
"xpack.lens.indexPatterns.filterByNameLabel": "検索フィールド名",
"xpack.lens.indexPatterns.noAvailableDataLabel": "データを含むフィールドはありません。",
"xpack.lens.indexPatterns.noDataLabel": "フィールドがありません。",
Expand Down
1 change: 0 additions & 1 deletion x-pack/plugins/translations/translations/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -11460,7 +11460,6 @@
"xpack.lens.indexPatterns.clearFiltersLabel": "清除名称和类型筛选",
"xpack.lens.indexPatterns.fieldFiltersLabel": "字段筛选",
"xpack.lens.indexPatterns.fieldSearchLiveRegion": "{availableFields} 个可用{availableFields, plural, other {字段}}。{emptyFields} 个空{emptyFields, plural, other {字段}}。{metaFields} 个元{metaFields, plural,other {字段}}。",
"xpack.lens.indexPatterns.filterByNameAriaLabel": "搜索字段",
"xpack.lens.indexPatterns.filterByNameLabel": "搜索字段名称",
"xpack.lens.indexPatterns.noAvailableDataLabel": "没有包含数据的可用字段。",
"xpack.lens.indexPatterns.noDataLabel": "无字段。",
Expand Down

0 comments on commit eaf6831

Please sign in to comment.