diff --git a/packages/react-core/package.json b/packages/react-core/package.json index 995ae0cffa7..5952af5c1aa 100644 --- a/packages/react-core/package.json +++ b/packages/react-core/package.json @@ -54,7 +54,7 @@ "tslib": "^2.5.0" }, "devDependencies": { - "@patternfly/patternfly": "6.0.0-alpha.49", + "@patternfly/patternfly": "6.0.0-alpha.51", "@rollup/plugin-commonjs": "^25.0.0", "@rollup/plugin-node-resolve": "^15.0.2", "@rollup/plugin-replace": "^5.0.2", diff --git a/packages/react-core/src/components/Nav/Nav.tsx b/packages/react-core/src/components/Nav/Nav.tsx index 6fe6eb9ca73..b0cd44730ed 100644 --- a/packages/react-core/src/components/Nav/Nav.tsx +++ b/packages/react-core/src/components/Nav/Nav.tsx @@ -35,10 +35,8 @@ export interface NavProps ) => void; /** Accessible label for the nav when there are multiple navs on the page */ 'aria-label'?: string; - /** Indicates which theme color to use */ - theme?: 'dark' | 'light'; /** For horizontal navs */ - variant?: 'default' | 'horizontal' | 'tertiary' | 'horizontal-subnav'; + variant?: 'default' | 'horizontal' | 'horizontal-subnav'; /** Value to overwrite the randomly generated data-ouia-component-id.*/ ouiaId?: number | string; /** Set the value of data-ouia-safe. Only set to true when the component is in a static state, i.e. no animations are occurring. At all other times, this value must be false. */ @@ -72,7 +70,6 @@ class Nav extends React.Component< static defaultProps: NavProps = { onSelect: () => undefined, onToggle: () => undefined, - theme: 'dark', ouiaSafe: true }; @@ -121,13 +118,12 @@ class Nav extends React.Component< onSelect, // eslint-disable-next-line @typescript-eslint/no-unused-vars onToggle, - theme, ouiaId, ouiaSafe, variant, ...props } = this.props; - const isHorizontal = ['horizontal', 'tertiary'].includes(variant); + const isHorizontal = ['horizontal', 'horizontal-subnav'].includes(variant); return ( , groupId: number | string, expanded: boolean) => this.onToggle(event, groupId, expanded), updateIsScrollable: (isScrollable: boolean) => this.setState({ isScrollable }), - isHorizontal: ['horizontal', 'tertiary', 'horizontal-subnav'].includes(variant), + isHorizontal: ['horizontal', 'horizontal-subnav'].includes(variant), flyoutRef: this.state.flyoutRef, setFlyoutRef: (flyoutRef) => this.setState({ flyoutRef }), navRef: this.navRef @@ -157,14 +153,12 @@ class Nav extends React.Component<