diff --git a/CHANGELOG.md b/CHANGELOG.md index 24733d63..f5bd7af7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +### 4.2.0 (2022-05-20) + +- [768](https://github.com/influxdata/clockface/pull/768): Added optional property to TreeNavSubMenu + ### 4.1.0 (2022-05-19) - [769](https://github.com/influxdata/clockface/pull/769): Selectable resource card for Bulk Actions @@ -38,7 +42,7 @@ ### 3.8.0 (2022-03-31) -- [752](https://github.com/influxdata/clockface/pull/752): Added Icon for Bulk Action Deselection +- [752](https://github.com/influxdata/clockface/pull/752): Added Icon for Bulk Action Deselection ### 3.7.0 (2022-03-31) @@ -55,6 +59,7 @@ ### 3.5.1 (2022-03-11) - [744](https://github.com/influxdata/clockface/pull/744): FormValidationElement bug fix + ### 3.5.0 (2022-03-10) - [740](https://github.com/influxdata/clockface/pull/740): Added input functionality to the PaginationNav diff --git a/package.json b/package.json index ae36ff54..880a55bc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@influxdata/clockface", - "version": "4.1.0", + "version": "4.2.0", "license": "MIT", "main": "dist/index.js", "style": "dist/index.css", diff --git a/src/Components/TreeNav/TreeNavSubMenu.tsx b/src/Components/TreeNav/TreeNavSubMenu.tsx index 217b6814..3caa3476 100644 --- a/src/Components/TreeNav/TreeNavSubMenu.tsx +++ b/src/Components/TreeNav/TreeNavSubMenu.tsx @@ -10,51 +10,67 @@ import { } from '../../Types' import {Popover} from '../Popover' -export type TreeNavSubMenuProps = StandardFunctionProps +export interface OptionalProp { + position?: PopoverPosition +} + +export type TreeNavSubMenuProps = StandardFunctionProps & OptionalProp export type TreeNavSubMenuRef = HTMLDivElement export const TreeNavSubMenu = forwardRef< TreeNavSubMenuRef, TreeNavSubMenuProps ->(({id, style, testID = 'tree-nav--sub-menu', className, children}, ref) => { - const navMenuHeaderClass = classnames('cf-tree-nav--sub-menu', { - [`${className}`]: className, - }) - - const triggerRef = useRef(null) - - return ( - <> -