Skip to content

Commit 7f8c60a

Browse files
committed
Moved location of custom hamburger icon
1 parent 4c1298f commit 7f8c60a

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

packages/react-core/src/components/Button/Button.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import { Spinner, spinnerSize } from '../Spinner';
55
import { useOUIAProps, OUIAProps } from '../../helpers/OUIA/ouia';
66
import { Badge } from '../Badge';
77
import CogIcon from '@patternfly/react-icons/dist/esm/icons/cog-icon';
8-
// TODO: replace following hamburger import when https://github.com/patternfly/patternfly-react/issues/11858 is resolved
9-
import { hamburgerIcon } from '../../helpers/hamburgerIcon';
8+
import { hamburgerIcon } from './hamburgerIcon';
109

1110
export enum ButtonVariant {
1211
primary = 'primary',

packages/react-core/src/helpers/hamburgerIcon.tsx renamed to packages/react-core/src/components/Button/hamburgerIcon.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// TODO: remove this file when https://github.com/patternfly/patternfly-react/issues/11858 is resolved
1+
// Because this is such a specific icon that requires being wrapped in a pf-v[current version]-c-button element,
2+
// we don't want to export this to consumers nor include it in the react-icons package as a custom icon.
23
export const hamburgerIcon = (
34
<svg viewBox="0 0 10 10" className="pf-v6-c-button--hamburger-icon pf-v6-svg" width="1em" height="1em">
45
<path className="pf-v6-c-button--hamburger-icon--top" d="M1,1 L9,1"></path>

packages/react-core/src/helpers/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@ export * from './KeyboardHandler';
1111
export * from './resizeObserver';
1212
export * from './useInterval';
1313
export * from './datetimeUtils';
14-
export * from './hamburgerIcon';

0 commit comments

Comments
 (0)