Skip to content

Commit

Permalink
another pass
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyfritz committed Mar 2, 2020
1 parent cc9ee52 commit 72e5332
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/nav_drawer/nav_drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const MENU_ELEMENT_ID = 'navDrawerMenu';
export type FlyoutLink =
EuiListGroupItemProps
& {
"data-name"?: ReactNode,
flyoutMenu?: {
title: string,
listItems: EuiListGroupProps["listItems"]
Expand Down Expand Up @@ -342,7 +343,7 @@ export class EuiNavDrawer extends Component<EuiNavDrawerProps, EuiNavDrawerState
sideNavLockAriaLabel,
sideNavLockExpanded,
sideNavLockCollapsed,
]) => (
]: string[]) => (
<EuiListGroupItem
buttonRef={node => (this.expandButtonRef = node)}
label={this.state.isCollapsed ? sideNavExpand : sideNavCollapse}
Expand Down
5 changes: 4 additions & 1 deletion src/components/nav_drawer/nav_drawer_group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { toInitials } from '../../services';
import { CommonProps } from '../common';
import { EuiListGroup } from '../list_group';
import { FlyoutLink } from './nav_drawer';
import { EuiListGroupProps } from '../list_group';

export const ATTR_SELECTOR = 'data-name';

Expand All @@ -16,12 +17,14 @@ export interface EuiNavDrawerGroupProps
* While not normally required, it is required to pass a function for handling
* of the flyout menu button click
*/
flyoutMenuButtonClick: (items: Array<FlyoutLink>, title: string, item: FlyoutLink) => MouseEventHandler<HTMLButtonElement>,
flyoutMenuButtonClick?: (items: Array<FlyoutLink>, title: string, item: FlyoutLink) => MouseEventHandler<HTMLButtonElement>,
/**
* Passthrough function to be called when the flyout is closing
* See ./nav_drawer.js
*/
onClose: () => void,
ariaLabelledby?: string;
wrapText: EuiListGroupProps["wrapText"],
}

export const EuiNavDrawerGroup: FunctionComponent<EuiNavDrawerGroupProps> = ({
Expand Down
1 change: 1 addition & 0 deletions src/components/title/title.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export type EuiTitleProps = CommonProps & {
size?: EuiTitleSize;
textTransform?: EuiTitleTextTransform;
id?: string;
tabIndex?: string;
};

export const EuiTitle: FunctionComponent<EuiTitleProps> = ({
Expand Down

0 comments on commit 72e5332

Please sign in to comment.