Skip to content

Commit 11e6885

Browse files
committed
Updated prop name to isDocked
1 parent abae4e1 commit 11e6885

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ export interface ButtonProps extends Omit<React.HTMLProps<HTMLButtonElement>, 'r
109109
hamburgerVariant?: 'expand' | 'collapse';
110110
/** @beta Flag indicating the button is a circle button. Intended for buttons that only contain an icon.. */
111111
isCircle?: boolean;
112-
/** @beta Flag indicating the button is a dock variant button. For use in docked navigation. */
113-
isDock?: boolean;
112+
/** @beta Flag indicating the button is a docked variant button. For use in docked navigation. */
113+
isDocked?: boolean;
114114
/** @beta Flag indicating the dock button should display text. Only applies when isDock is true. */
115115
isTextExpanded?: boolean;
116116
/** @hide Forwarded ref */
@@ -138,7 +138,7 @@ const ButtonBase: React.FunctionComponent<ButtonProps> = ({
138138
isHamburger,
139139
hamburgerVariant,
140140
isCircle,
141-
isDock = false,
141+
isDocked = false,
142142
isTextExpanded = false,
143143
spinnerAriaValueText,
144144
spinnerAriaLabelledBy,
@@ -271,7 +271,7 @@ const ButtonBase: React.FunctionComponent<ButtonProps> = ({
271271
size === ButtonSize.sm && styles.modifiers.small,
272272
size === ButtonSize.lg && styles.modifiers.displayLg,
273273
isCircle && styles.modifiers.circle,
274-
isDock && styles.modifiers.dock,
274+
isDocked && styles.modifiers.dock, // Replace wwith docked class from https://github.com/patternfly/patternfly/pull/8308
275275
isTextExpanded && styles.modifiers.textExpanded,
276276
className
277277
)}

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ export interface MenuToggleProps
5151
isCircle?: boolean;
5252
/** Flag indicating whether the toggle is a settings toggle. This will override the icon property */
5353
isSettings?: boolean;
54-
/** @beta Flag indicating the toggle is a dock variant. For use in docked navigation. */
55-
isDock?: boolean;
54+
/** @beta Flag indicating the menu toggle is a docked variant. For use in docked navigation. */
55+
isDocked?: boolean;
5656
/** @beta Flag indicating the dock toggle should display text. Only applies when isDock is true. */
5757
isTextExpanded?: boolean;
5858
/** Elements to display before the toggle button. When included, renders the menu toggle as a split button. */
@@ -89,7 +89,7 @@ class MenuToggleBase extends Component<MenuToggleProps> {
8989
isFullHeight: false,
9090
isPlaceholder: false,
9191
isCircle: false,
92-
isDock: false,
92+
isDocked: false,
9393
isTextExpanded: false,
9494
size: 'default',
9595
ouiaSafe: true
@@ -108,7 +108,7 @@ class MenuToggleBase extends Component<MenuToggleProps> {
108108
isPlaceholder,
109109
isCircle,
110110
isSettings,
111-
isDock,
111+
isDocked,
112112
isTextExpanded,
113113
splitButtonItems,
114114
variant,
@@ -193,7 +193,7 @@ class MenuToggleBase extends Component<MenuToggleProps> {
193193
isDisabled && styles.modifiers.disabled,
194194
isPlaceholder && styles.modifiers.placeholder,
195195
isSettings && styles.modifiers.settings,
196-
isDock && styles.modifiers.dock,
196+
isDocked && styles.modifiers.dock, // Replace wwith docked class from https://github.com/patternfly/patternfly/pull/8308
197197
isTextExpanded && styles.modifiers.textExpanded,
198198
size === MenuToggleSize.sm && styles.modifiers.small,
199199
className

0 commit comments

Comments
 (0)