From af9b0dc1dd254f00196efefb18422583b1413764 Mon Sep 17 00:00:00 2001 From: 1Copenut Date: Thu, 9 Feb 2023 15:08:22 -0600 Subject: [PATCH 1/4] Bumping EUI to v75.0.0. --- package.json | 2 +- src/dev/license_checker/config.ts | 2 +- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 0aaf633a71dfb..f9d01acc92075 100644 --- a/package.json +++ b/package.json @@ -107,7 +107,7 @@ "@elastic/datemath": "5.0.3", "@elastic/elasticsearch": "npm:@elastic/elasticsearch-canary@8.6.0-canary.3", "@elastic/ems-client": "8.4.0", - "@elastic/eui": "74.1.0", + "@elastic/eui": "75.0.0", "@elastic/filesaver": "1.1.2", "@elastic/node-crypto": "1.2.1", "@elastic/numeral": "^2.5.1", diff --git a/src/dev/license_checker/config.ts b/src/dev/license_checker/config.ts index 11e463efa91ab..dd3e6f17c80f1 100644 --- a/src/dev/license_checker/config.ts +++ b/src/dev/license_checker/config.ts @@ -84,6 +84,6 @@ export const LICENSE_OVERRIDES = { 'jsts@1.6.2': ['Eclipse Distribution License - v 1.0'], // cf. https://github.com/bjornharrtell/jsts '@mapbox/jsonlint-lines-primitives@2.0.2': ['MIT'], // license in readme https://github.com/tmcw/jsonlint '@elastic/ems-client@8.4.0': ['Elastic License 2.0'], - '@elastic/eui@74.1.0': ['SSPL-1.0 OR Elastic License 2.0'], + '@elastic/eui@75.0.0': ['SSPL-1.0 OR Elastic License 2.0'], 'language-subtag-registry@0.3.21': ['CC-BY-4.0'], // retired ODC‑By license https://github.com/mattcg/language-subtag-registry }; diff --git a/yarn.lock b/yarn.lock index c5a662bdf9bd2..421e8450d0009 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1539,10 +1539,10 @@ resolved "https://registry.yarnpkg.com/@elastic/eslint-plugin-eui/-/eslint-plugin-eui-0.0.2.tgz#56b9ef03984a05cc213772ae3713ea8ef47b0314" integrity sha512-IoxURM5zraoQ7C8f+mJb9HYSENiZGgRVcG4tLQxE61yHNNRDXtGDWTZh8N1KIHcsqN1CEPETjuzBXkJYF/fDiQ== -"@elastic/eui@74.1.0": - version "74.1.0" - resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-74.1.0.tgz#bf60ad199715da3622deb33efb587893a9321073" - integrity sha512-pSoIO7h/T4gR3yZbKcadSt8/pPNb45L6s8mR5nHLDo+otAam6Yo3V1u9Upwc5QOVW82hROPfvao44lY7egIiAw== +"@elastic/eui@75.0.0": + version "75.0.0" + resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-75.0.0.tgz#06f1d41181327d91d6531f240372c01c34505bee" + integrity sha512-fgjpF4l+YuMVepnYbiddpVZHkzEVrgwvsmJokaf0OZZ34UCh+OB2z4n01yAhmhQXhrFEKv8+LmQt+OMIpTBevA== dependencies: "@types/chroma-js" "^2.0.0" "@types/lodash" "^4.14.160" From 6c82dfd85667248561607b1228864f5ba3e5751b Mon Sep 17 00:00:00 2001 From: 1Copenut Date: Thu, 9 Feb 2023 15:16:52 -0600 Subject: [PATCH 2/4] Updated EUI i18n tokens. --- .../__snapshots__/i18n_service.test.tsx.snap | 3 +++ .../src/i18n_eui_mapping.tsx | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/packages/core/i18n/core-i18n-browser-internal/src/__snapshots__/i18n_service.test.tsx.snap b/packages/core/i18n/core-i18n-browser-internal/src/__snapshots__/i18n_service.test.tsx.snap index f0af56e9b0b55..95c1b8fed4a6a 100644 --- a/packages/core/i18n/core-i18n-browser-internal/src/__snapshots__/i18n_service.test.tsx.snap +++ b/packages/core/i18n/core-i18n-browser-internal/src/__snapshots__/i18n_service.test.tsx.snap @@ -139,6 +139,9 @@ exports[`#start() returns \`Context\` component 1`] = ` "euiFilterButton.filterBadgeActiveAriaLabel": [Function], "euiFilterButton.filterBadgeAvailableAriaLabel": [Function], "euiFlyout.closeAriaLabel": "Close this dialog", + "euiFlyout.screenReaderFixedHeaders": "You can still continue tabbing through the page headers in addition to the dialog.", + "euiFlyout.screenReaderModalDialog": "You are in a modal dialog. Press Escape or tap/click outside the dialog on the shadowed overlay to close.", + "euiFlyout.screenReaderNonModalDialog": "You are in a non-modal dialog. To close the dialog, press Escape.", "euiForm.addressFormErrors": "Please address the highlighted errors.", "euiFormControlLayoutClearButton.label": "Clear input", "euiFullscreenSelector.fullscreenButton": "Enter fullscreen", diff --git a/packages/core/i18n/core-i18n-browser-internal/src/i18n_eui_mapping.tsx b/packages/core/i18n/core-i18n-browser-internal/src/i18n_eui_mapping.tsx index 95d354ea2c017..f3a29731325f2 100644 --- a/packages/core/i18n/core-i18n-browser-internal/src/i18n_eui_mapping.tsx +++ b/packages/core/i18n/core-i18n-browser-internal/src/i18n_eui_mapping.tsx @@ -743,6 +743,23 @@ export const getEuiContextMapping = (): EuiTokensObject => { 'euiFlyout.closeAriaLabel': i18n.translate('core.euiFlyout.closeAriaLabel', { defaultMessage: 'Close this dialog', }), + 'euiFlyout.screenReaderModalDialog': i18n.translate('core.euiFlyout.screenReaderModalDialog', { + defaultMessage: + 'You are in a modal dialog. Press Escape or tap/click outside the dialog on the shadowed overlay to close.', + }), + 'euiFlyout.screenReaderNonModalDialog': i18n.translate( + 'core.euiFlyout.screenReaderNonModalDialog', + { + defaultMessage: 'You are in a non-modal dialog. To close the dialog, press Escape.', + } + ), + 'euiFlyout.screenReaderFixedHeaders': i18n.translate( + 'core.euiFlyout.screenReaderFixedHeaders', + { + defaultMessage: + 'You can still continue tabbing through the page headers in addition to the dialog.', + } + ), 'euiForm.addressFormErrors': i18n.translate('core.euiForm.addressFormErrors', { defaultMessage: 'Please address the highlighted errors.', }), From deed54808b4a8c38d70281067075a4e8bd62b6cb Mon Sep 17 00:00:00 2001 From: 1Copenut Date: Fri, 10 Feb 2023 08:32:29 -0600 Subject: [PATCH 3/4] Updating close button ARIA prop and snapshots. --- .../src/ui/header/__snapshots__/collapsible_nav.test.tsx.snap | 1 + .../src/ui/header/__snapshots__/header.test.tsx.snap | 2 ++ .../keyboard_shortcuts_doc/keyboard_shortcuts_doc.tsx | 2 +- .../monitor_add_edit/fields/script_recorder_fields.tsx | 2 +- .../components/fleet_package/browser/script_recorder_fields.tsx | 2 +- 5 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/__snapshots__/collapsible_nav.test.tsx.snap b/packages/core/chrome/core-chrome-browser-internal/src/ui/header/__snapshots__/collapsible_nav.test.tsx.snap index 4af92461be626..38c5a7fdf4854 100644 --- a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/__snapshots__/collapsible_nav.test.tsx.snap +++ b/packages/core/chrome/core-chrome-browser-internal/src/ui/header/__snapshots__/collapsible_nav.test.tsx.snap @@ -10,6 +10,7 @@ Array [