diff --git a/package.json b/package.json index a237655ff78..ea520259136 100644 --- a/package.json +++ b/package.json @@ -115,7 +115,7 @@ "@cypress/code-coverage": "^3.9.12", "@cypress/react": "^5.10.3", "@cypress/webpack-dev-server": "^1.7.0", - "@elastic/charts": "^45.1.1", + "@elastic/charts": "^46.0.0", "@elastic/datemath": "^5.0.3", "@elastic/eslint-config-kibana": "^0.15.0", "@emotion/babel-preset-css-prop": "^11.2.0", diff --git a/scripts/release.js b/scripts/release.js index 9594a292098..1131afe9668 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -66,7 +66,7 @@ if (args.dry_run) { updateChangelog(changelog, versionTarget); // Clear any local tags - execSync('git fetch upstream --tags --prune --prune-tags'); + execSync('git fetch upstream --tags --prune --prune-tags --force'); // update package.json & package-lock.json version, git commit, git tag execSync(`npm version ${versionTarget}`, execOptions); diff --git a/src-docs/src/views/elastic_charts/accessibility_bullet.js b/src-docs/src/views/elastic_charts/accessibility_bullet.js index 4f7fb3041a4..5339fb50c66 100644 --- a/src-docs/src/views/elastic_charts/accessibility_bullet.js +++ b/src-docs/src/views/elastic_charts/accessibility_bullet.js @@ -63,6 +63,7 @@ export const AccessibilityBullet = () => { actual={280} bands={bands} ticks={[0, 50, 100, 150, 200, 250, 300]} + domain={{ min: 0, max: 300 }} tickValueFormatter={({ value }) => String(value)} bandFillColor={({ value }) => bandFillColor(value)} labelMajor="Revenue 2020 YTD " diff --git a/src-docs/src/views/elastic_charts/accessibility_example.js b/src-docs/src/views/elastic_charts/accessibility_example.js index 8ef88979634..16b988acb72 100644 --- a/src-docs/src/views/elastic_charts/accessibility_example.js +++ b/src-docs/src/views/elastic_charts/accessibility_example.js @@ -334,6 +334,7 @@ export const ElasticChartsAccessibilityExample = { snippet: ` { actual={12} bands={bands} ticks={[-10, 0, 10, 20, 30, 40]} + domain={{ min: -10, max: 40 }} tickValueFormatter={({ value }) => String(value)} bandFillColor={({ value }) => bandFillColor(value)} labelMajor="Temperature" diff --git a/src-docs/src/views/spacer/_spacer.scss b/src-docs/src/views/spacer/_spacer.scss index 5e05f9ce448..3489f651ac5 100644 --- a/src-docs/src/views/spacer/_spacer.scss +++ b/src-docs/src/views/spacer/_spacer.scss @@ -3,7 +3,7 @@ background: $guideDemoHighlightColor; } - .euiCodeBlock { + .euiCode { align-self: flex-start; margin-bottom: $euiSize; } diff --git a/src-docs/src/views/timeline/timeline.tsx b/src-docs/src/views/timeline/timeline.tsx index 8a9f46ed7b5..5d18813c0c0 100644 --- a/src-docs/src/views/timeline/timeline.tsx +++ b/src-docs/src/views/timeline/timeline.tsx @@ -39,4 +39,6 @@ const items: EuiTimelineProps['items'] = [ }, ]; -export default () => ; +export default () => ( + +); diff --git a/src-docs/src/views/timeline/timeline_example.js b/src-docs/src/views/timeline/timeline_example.js index ca86fa87de9..9674d3018b7 100644 --- a/src-docs/src/views/timeline/timeline_example.js +++ b/src-docs/src/views/timeline/timeline_example.js @@ -6,6 +6,7 @@ import { EuiCode, EuiTimeline, EuiTimelineItem, + EuiCallOut, } from '../../../../src/components'; import timelineItemConfig from './playground'; @@ -82,6 +83,19 @@ export const TimelineExample = { actions that either a user or a system has performed. + + + For accessibility, it is highly recommended to provide a + descriptive aria-label, or a text node ID of + an external label to the aria-labelledby prop + of the EuiTimeline. + + } + /> ), props: { EuiTimeline, EuiTimelineItem }, @@ -136,11 +150,10 @@ export const TimelineExample = { <>

You can create a timeline thread by rendering multiple{' '} - EuiTimelineItem components. Wrapping these with an{' '} - EuiTimeline is not required, but we recommend - having all the EuiTimelineItems nested in the same - container. This way, we ensure that timeline styles are applied - correctly. + EuiTimelineItem components in a{' '} + EuiTimeline. Following this structure ensures that + timeline styles are applied correctly and appropriate semantic + elements are used to assist with screen readers.

When passing an icon and{' '} diff --git a/src-docs/src/views/timeline/timeline_item.tsx b/src-docs/src/views/timeline/timeline_item.tsx index e4c9162dcfe..ba9870c6a27 100644 --- a/src-docs/src/views/timeline/timeline_item.tsx +++ b/src-docs/src/views/timeline/timeline_item.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { EuiTimelineItem, EuiText, EuiCode } from '../../../../src/components'; export default () => ( - +

I'm the children and you can find the{' '} diff --git a/src-docs/src/views/timeline/timeline_item_event.tsx b/src-docs/src/views/timeline/timeline_item_event.tsx index e5274e98216..1be20e290e7 100644 --- a/src-docs/src/views/timeline/timeline_item_event.tsx +++ b/src-docs/src/views/timeline/timeline_item_event.tsx @@ -14,6 +14,7 @@ import { EuiSplitPanel, EuiPanel, EuiHorizontalRule, + EuiTimeline, } from '../../../../src/components'; import { @@ -107,7 +108,7 @@ export default () => { ); return ( -

+ { {phase('Cold phase', checked2, onChange2, colorBlindBehindText[2])} {phase('Frozen phase', checked3, onChange3, colorBlindBehindText[3])} -
+
); }; diff --git a/src/components/accordion/_accordion.scss b/src/components/accordion/_accordion.scss index aad27ccd02b..ff01baff1e4 100644 --- a/src/components/accordion/_accordion.scss +++ b/src/components/accordion/_accordion.scss @@ -40,11 +40,11 @@ } .euiAccordion__childWrapper { + will-change: opacity, visibility, height; visibility: hidden; height: 0; opacity: 0; overflow: hidden; - transform: translatez(0); // sass-lint:disable-block indentation transition: height $euiAnimSpeedNormal $euiAnimSlightResistance, diff --git a/src/components/aspect_ratio/__snapshots__/aspect_ratio.test.tsx.snap b/src/components/aspect_ratio/__snapshots__/aspect_ratio.test.tsx.snap index d392f34e5bb..beaad26b6d6 100644 --- a/src/components/aspect_ratio/__snapshots__/aspect_ratio.test.tsx.snap +++ b/src/components/aspect_ratio/__snapshots__/aspect_ratio.test.tsx.snap @@ -1,43 +1,37 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`EuiAspectRatio is rendered 1`] = ` -
+`; + +exports[`EuiAspectRatio props maxWidth is rendered 1`] = ` +