@patternfly/quickstarts 6.0.0-prerelease.2 → 6.0.0-prerelease.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -163,10 +163,6 @@
163
163
  border: var(--pf-v6-c-card--BorderColor) var(--pf-v6-c-card--BorderStyle) var(--pf-v6-c-card--BorderWidth) !important;
164
164
  }
165
165
 
166
- .pfext-quick-start-footer {
167
- padding-top: var(--pf-t--global--spacer--md);
168
- }
169
-
170
166
  .pfext-quick-start-task {
171
167
  flex: 1 1 0;
172
168
  overflow: auto;
@@ -175,6 +171,10 @@
175
171
  margin-block-end: var(--pf-v6-c-content--MarginBlockEnd);
176
172
  }
177
173
 
174
+ .pfext-quick-start-footer {
175
+ padding-top: var(--pf-t--global--spacer--md);
176
+ }
177
+
178
178
  button.pf-v6-c-wizard__nav-link {
179
179
  margin-bottom: var(--pf-t--global--spacer--md);
180
180
  }
@@ -6535,7 +6535,7 @@ const MenuList = (_a) => {
6535
6535
  MenuList.displayName = 'MenuList';
6536
6536
 
6537
6537
  const SelectBase = (_a) => {
6538
- var { children, className, onSelect, isOpen, selected, toggle, shouldFocusToggleOnSelect = false, shouldFocusFirstItemOnOpen = true, onOpenChange, onOpenChangeKeys = ['Escape', 'Tab'], isPlain, innerRef, zIndex = 9999, role = 'listbox', popperProps, menuHeight, maxMenuHeight, isScrollable } = _a, props = __rest$1(_a, ["children", "className", "onSelect", "isOpen", "selected", "toggle", "shouldFocusToggleOnSelect", "shouldFocusFirstItemOnOpen", "onOpenChange", "onOpenChangeKeys", "isPlain", "innerRef", "zIndex", "role", "popperProps", "menuHeight", "maxMenuHeight", "isScrollable"]);
6538
+ var { children, className, onSelect, isOpen, selected, toggle, shouldFocusToggleOnSelect = false, shouldFocusFirstItemOnOpen = false, onOpenChange, onOpenChangeKeys = ['Escape', 'Tab'], isPlain, innerRef, zIndex = 9999, role = 'listbox', popperProps, menuHeight, maxMenuHeight, isScrollable, shouldPreventScrollOnItemFocus = true, focusTimeoutDelay = 0 } = _a, props = __rest$1(_a, ["children", "className", "onSelect", "isOpen", "selected", "toggle", "shouldFocusToggleOnSelect", "shouldFocusFirstItemOnOpen", "onOpenChange", "onOpenChangeKeys", "isPlain", "innerRef", "zIndex", "role", "popperProps", "menuHeight", "maxMenuHeight", "isScrollable", "shouldPreventScrollOnItemFocus", "focusTimeoutDelay"]);
6539
6539
  const localMenuRef = React__default.useRef();
6540
6540
  const localToggleRef = React__default.useRef();
6541
6541
  const menuRef = innerRef || localMenuRef;
@@ -6549,8 +6549,8 @@ const SelectBase = (_a) => {
6549
6549
  setTimeout(() => {
6550
6550
  var _a;
6551
6551
  const firstElement = (_a = menuRef === null || menuRef === void 0 ? void 0 : menuRef.current) === null || _a === void 0 ? void 0 : _a.querySelector('li button:not(:disabled),li input:not(:disabled)');
6552
- firstElement && firstElement.focus();
6553
- }, 10);
6552
+ firstElement && firstElement.focus({ preventScroll: shouldPreventScrollOnItemFocus });
6553
+ }, focusTimeoutDelay);
6554
6554
  }
6555
6555
  prevIsOpen.current = isOpen;
6556
6556
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -6584,7 +6584,16 @@ const SelectBase = (_a) => {
6584
6584
  window.removeEventListener('keydown', handleMenuKeys);
6585
6585
  window.removeEventListener('click', handleClick);
6586
6586
  };
6587
- }, [isOpen, menuRef, toggleRef, onOpenChange, onOpenChangeKeys]);
6587
+ }, [
6588
+ isOpen,
6589
+ menuRef,
6590
+ toggleRef,
6591
+ onOpenChange,
6592
+ onOpenChangeKeys,
6593
+ shouldPreventScrollOnItemFocus,
6594
+ shouldFocusFirstItemOnOpen,
6595
+ focusTimeoutDelay
6596
+ ]);
6588
6597
  const menu = (React__default.createElement(Menu, Object.assign({ role: role, className: css(className), ref: menuRef, onSelect: (event, value) => {
6589
6598
  onSelect && onSelect(event, value);
6590
6599
  shouldFocusToggleOnSelect && toggleRef.current.focus();