Skip to content

Commit

Permalink
[8.12] Fix existing pipeline list keyboard accessibility (#172680) (#…
Browse files Browse the repository at this point in the history
…172852)

# Backport

This will backport the following commits from `main` to `8.12`:
- [Fix existing pipeline list keyboard accessibility
(#172680)](#172680)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Mike
Pellegrini","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-12-07T16:28:20Z","message":"Fix
existing pipeline list keyboard accessibility (#172680)\n\n##
Summary\r\n\r\nFix keyboard accessibility for the existing pipeline
selection
list","sha":"8937ce4c0d1eadb776f2996436e5d722eaca9a34","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:EnterpriseSearch","v8.12.0","v8.13.0"],"number":172680,"url":"https://github.com/elastic/kibana/pull/172680","mergeCommit":{"message":"Fix
existing pipeline list keyboard accessibility (#172680)\n\n##
Summary\r\n\r\nFix keyboard accessibility for the existing pipeline
selection
list","sha":"8937ce4c0d1eadb776f2996436e5d722eaca9a34"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","labelRegex":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/172680","number":172680,"mergeCommit":{"message":"Fix
existing pipeline list keyboard accessibility (#172680)\n\n##
Summary\r\n\r\nFix keyboard accessibility for the existing pipeline
selection list","sha":"8937ce4c0d1eadb776f2996436e5d722eaca9a34"}}]}]
BACKPORT-->

Co-authored-by: Mike Pellegrini <[email protected]>
  • Loading branch information
kibanamachine and Mikep86 authored Dec 7, 2023
1 parent 3b9c879 commit 598fc0e
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,10 @@ export const PipelineSelect: React.FC = () => {
}
};

const getActiveOptionIndex = (): number | undefined => {
const index = existingInferencePipelines.findIndex(
(pipelineOption) => pipelineOption.pipelineName === pipelineName
);

return index >= 0 ? index : undefined;
};

return (
<EuiSelectable
options={getPipelineOptions(existingInferencePipelines)}
listProps={{
activeOptionIndex: getActiveOptionIndex(),
bordered: true,
rowHeight: useIsWithinMaxBreakpoint('s') ? 120 : 90,
showIcons: true,
Expand Down

0 comments on commit 598fc0e

Please sign in to comment.