Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.x] Upgrade EUI to v30.5.1 (#84677) #85040

Merged
merged 1 commit into from
Dec 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"@elastic/datemath": "link:packages/elastic-datemath",
"@elastic/elasticsearch": "7.10.0",
"@elastic/ems-client": "7.11.0",
"@elastic/eui": "30.2.0",
"@elastic/eui": "30.5.1",
"@elastic/filesaver": "1.1.2",
"@elastic/good": "^9.0.1-kibana3",
"@elastic/node-crypto": "1.2.1",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/core/public/chrome/ui/header/header_help_menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@ class HeaderHelpMenuUI extends Component<Props, State> {
data-test-subj="helpMenuButton"
id="headerHelpMenu"
isOpen={this.state.isOpen}
ownFocus
repositionOnScroll
>
<EuiPopoverTitle>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export function LibraryNotificationPopover({

return (
<EuiPopover
ownFocus
button={
<EuiButtonIcon
data-test-subj={`embeddablePanelNotification-${id}`}
Expand Down
1 change: 0 additions & 1 deletion src/plugins/data/public/ui/filter_bar/filter_bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ function FilterBarUI(props: Props) {
closePopover={() => setIsAddFilterPopoverOpen(false)}
anchorPosition="downLeft"
panelPaddingSize="none"
ownFocus={true}
initialFocus=".filterEditor__hiddenItem"
repositionOnScroll
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ export function QueryLanguageSwitcher(props: Props) {
<EuiPopover
id="queryLanguageSwitcherPopover"
anchorClassName="euiFormControlLayout__append"
ownFocus
anchorPosition={props.anchorPosition || 'downRight'}
button={button}
isOpen={isPopoverOpen}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ export function SavedQueryManagementComponent({
anchorPosition="downLeft"
panelPaddingSize="none"
buffer={-8}
ownFocus
repositionOnScroll
>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export function ChangeIndexPattern({
closePopover={() => setPopoverIsOpen(false)}
display="block"
panelPaddingSize="s"
ownFocus
>
<div style={{ width: 320 }}>
<EuiPopoverTitle>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ export function DiscoverField({

return (
<EuiPopover
ownFocus
display="block"
button={
<FieldButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import React, { EventHandler, MouseEvent as ReactMouseEvent } from 'react';
import React from 'react';
import { act } from 'react-dom/test-utils';
import { mountWithIntl } from '@kbn/test/jest';
import { findTestSubject } from '@elastic/eui/lib/test';
Expand Down Expand Up @@ -146,33 +146,4 @@ describe('DiscoverFieldSearch', () => {
popover = component.find(EuiPopover);
expect(popover.prop('isOpen')).toBe(false);
});

test('click outside popover should close popover', () => {
const triggerDocumentMouseDown: EventHandler<any> = (e: ReactMouseEvent<any>) => {
const event = new Event('mousedown');
// @ts-ignore
event.euiGeneratedBy = e.nativeEvent.euiGeneratedBy;
document.dispatchEvent(event);
};
const triggerDocumentMouseUp: EventHandler<any> = (e: ReactMouseEvent<any>) => {
const event = new Event('mouseup');
// @ts-ignore
event.euiGeneratedBy = e.nativeEvent.euiGeneratedBy;
document.dispatchEvent(event);
};
const component = mountWithIntl(
<div onMouseDown={triggerDocumentMouseDown} onMouseUp={triggerDocumentMouseUp} id="wrapperId">
<DiscoverFieldSearch {...defaultProps} />
</div>
);
const btn = findTestSubject(component, 'toggleFieldFilterButton');
btn.simulate('click');
let popover = component.find(EuiPopover);
expect(popover.length).toBe(1);
expect(popover.prop('isOpen')).toBe(true);
component.find('#wrapperId').simulate('mousedown');
component.find('#wrapperId').simulate('mouseup');
popover = component.find(EuiPopover);
expect(popover.prop('isOpen')).toBe(false);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ export class RecentlyAccessed extends Component {
return (
<EuiPopover
id="popover"
ownFocus
button={openPopoverComponent}
isOpen={this.state.isPopoverOpen}
closePopover={this.closePopover}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/plugins/inspector/public/ui/inspector_view_chooser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ export class InspectorViewChooser extends Component<Props, State> {
return (
<EuiPopover
id="inspectorViewChooser"
ownFocus
button={triggerButton}
isOpen={this.state.isSelectorOpen}
closePopover={this.closeSelector}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ export function openContextMenu(
closePopover={onClose}
panelPaddingSize="none"
anchorPosition="downRight"
ownFocus={true}
>
<EuiContextMenu
initialPanelId="mainMenu"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ const VisLegendItemComponent = ({

const renderDetails = () => (
<EuiPopover
ownFocus
display="block"
button={button}
isOpen={selected}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const ItemRow = styled.div`

const SubduedDescriptionListTitle = styled(EuiDescriptionListTitle)`
&&& {
color: ${({ theme }) => theme.eui.textColors.subdued};
color: ${({ theme }) => theme.eui.euiTextSubduedColor};
}
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const ItemRow = styled('tr')`
`;

export const ItemTitle = styled('td')`
color: ${({ theme }) => theme.eui.textColors.subdued};
color: ${({ theme }) => theme.eui.euiTextSubduedColor};
padding-right: 1rem;
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const getStyle = (theme: EuiTheme): cytoscape.Stylesheet[] => {
color: (el: cytoscape.NodeSingular) =>
el.hasClass('primary') || el.selected()
? theme.eui.euiColorPrimaryText
: theme.eui.textColors.text,
: theme.eui.euiTextColor,
// theme.euiFontFamily doesn't work here for some reason, so we're just
// specifying a subset of the fonts for the label text.
'font-family': 'Inter UI, Segoe UI, Helvetica, Arial, sans-serif',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const CausedByContainer = styled('h5')`
`;

const CausedByHeading = styled('span')`
color: ${({ theme }) => theme.eui.textColors.subdued};
color: ${({ theme }) => theme.eui.euiTextSubduedColor};
display: block;
font-size: ${({ theme }) => theme.eui.euiFontSizeXS};
font-weight: ${({ theme }) => theme.eui.euiFontWeightBold};
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading