Skip to content

Commit 6c50c4e

Browse files
committed
better message for drop zone screen reader
1 parent e5a118a commit 6c50c4e

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/geo_field_workspace_panel.tsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
import React from 'react';
9-
import { EuiPageContentBody, EuiText } from '@elastic/eui';
9+
import { EuiPageContentBody, EuiSpacer, EuiText } from '@elastic/eui';
1010
import { FormattedMessage } from '@kbn/i18n/react';
1111
import { i18n } from '@kbn/i18n';
1212
import {
@@ -28,8 +28,8 @@ interface Props {
2828
const dragDropIdentifier = {
2929
id: 'lnsGeoFieldWorkspace',
3030
humanData: {
31-
label: i18n.translate('xpack.lens.geoFieldWorkspace.workspaceLabel', {
32-
defaultMessage: 'Geo field workspace',
31+
label: i18n.translate('xpack.lens.geoFieldWorkspace.dropZoneLabel', {
32+
defaultMessage: 'drop zone to open in maps',
3333
}),
3434
},
3535
};
@@ -46,15 +46,12 @@ export function GeoFieldWorkspacePanel(props: Props) {
4646

4747
return (
4848
<EuiPageContentBody className="lnsWorkspacePanelWrapper__pageContentBody">
49-
<EuiText
50-
className="lnsWorkspacePanel__emptyContent"
51-
textAlign="center"
52-
size="s"
53-
>
49+
<EuiText className="lnsWorkspacePanel__emptyContent" textAlign="center" size="s">
5450
<h2>
5551
<strong>{getVisualizeGeoFieldMessage(props.fieldType)}</strong>
5652
</h2>
5753
<GlobeIllustration aria-hidden={true} className="lnsWorkspacePanel__dropIllustration" />
54+
<EuiSpacer size="l" />
5855
<DragDrop
5956
className="lnsVisualizeGeoFieldWorkspacePanel__dragDrop"
6057
dataTestSubj="lnsGeoFieldWorkspace"

0 commit comments

Comments
 (0)