mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[Search][a11y] fix radio buttons to focus (#200573)
## Summary Added name attribute in `EuiCheckableCard` components so that focus stays on selected radio component when navigated using keyboard. ### Checklist - [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
This commit is contained in:
parent
f47376297b
commit
d88ce9e549
4 changed files with 16 additions and 2 deletions
|
@ -82,7 +82,7 @@ export const CloudDetailsPanel = ({
|
|||
<EuiSpacer size="l" />
|
||||
<EuiCheckableCard
|
||||
id={CloudDetail.ElasticsearchEndpoint}
|
||||
name={CloudDetail.ElasticsearchEndpoint}
|
||||
name="copy-connection-details-choices"
|
||||
label={
|
||||
<EuiFlexGroup alignItems="center">
|
||||
<EuiFlexItem>
|
||||
|
@ -123,7 +123,7 @@ export const CloudDetailsPanel = ({
|
|||
{Boolean(cloudId) && (
|
||||
<EuiCheckableCard
|
||||
id={CloudDetail.CloudId}
|
||||
name={CloudDetail.CloudId}
|
||||
name="copy-connection-details-choices"
|
||||
label={
|
||||
<EuiTitle size="xxs">
|
||||
<h5>
|
||||
|
|
|
@ -42,6 +42,11 @@ export const RunOptionsButtons: React.FC<RunOptionsButtonsProps> = ({
|
|||
onChange={() => selectDeploymentMethod('docker')}
|
||||
id="xpack.enterpriseSearch.content.connector_detail.configurationConnector.steps.runConnectorService.docker"
|
||||
checked={selectedDeploymentMethod === 'docker'}
|
||||
aria-label={i18n.translate(
|
||||
'xpack.enterpriseSearch.connectorConfiguration.dockerTextLabel.ariaLabel',
|
||||
{ defaultMessage: 'Run with Docker' }
|
||||
)}
|
||||
name="deployment-method-run-connector"
|
||||
label={
|
||||
<EuiFlexGroup responsive={false} gutterSize="s" alignItems="center">
|
||||
<EuiFlexItem grow={false}>
|
||||
|
@ -64,6 +69,11 @@ export const RunOptionsButtons: React.FC<RunOptionsButtonsProps> = ({
|
|||
onChange={() => selectDeploymentMethod('source')}
|
||||
id="xpack.enterpriseSearch.content.connector_detail.configurationConnector.steps.runConnectorService.source"
|
||||
checked={selectedDeploymentMethod === 'source'}
|
||||
aria-label={i18n.translate(
|
||||
'xpack.enterpriseSearch.connectorConfiguration.sourceTextLabel.ariaLabel',
|
||||
{ defaultMessage: 'Run from source' }
|
||||
)}
|
||||
name="deployment-method-run-connector"
|
||||
label={
|
||||
<EuiFlexGroup responsive={false} gutterSize="s" alignItems="center">
|
||||
<EuiFlexItem grow={false}>
|
||||
|
|
|
@ -93,6 +93,7 @@ export const AutomaticCrawlScheduler: React.FC = () => {
|
|||
<EuiFlexItem>
|
||||
<EuiCheckableCard
|
||||
id="specificTimeSchedulingCard"
|
||||
name="scheduling-card"
|
||||
label={
|
||||
<>
|
||||
<EuiTitle size="xxs">
|
||||
|
@ -137,6 +138,7 @@ export const AutomaticCrawlScheduler: React.FC = () => {
|
|||
<EuiFlexItem>
|
||||
<EuiCheckableCard
|
||||
id="intervalSchedulingCard"
|
||||
name="scheduling-card"
|
||||
label={
|
||||
<>
|
||||
<EuiTitle size="xxs">
|
||||
|
|
|
@ -42,6 +42,7 @@ export const AuthenticationPanelEditContent: React.FC = () => {
|
|||
<EuiCheckableCard
|
||||
data-telemetry-id="entSearchContent-crawler-domainDetail-authentication-basicAuthentication"
|
||||
id="basicAuthenticationCheckableCard"
|
||||
name="authenticationCard"
|
||||
className="authenticationCheckable"
|
||||
label={
|
||||
<EuiTitle size="xxs">
|
||||
|
@ -75,6 +76,7 @@ export const AuthenticationPanelEditContent: React.FC = () => {
|
|||
<EuiCheckableCard
|
||||
data-telemetry-id="entSearchContent-crawler-domainDetail-authentication-authenticationHeader"
|
||||
id="authenticationHeaderCheckableCard"
|
||||
name="authenticationCard"
|
||||
className="authenticationCheckable"
|
||||
label={
|
||||
<EuiTitle size="xxs">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue