We are pleased to announceCoreUI PRO for React v5.22.0 — a comprehensive release that introduces enhanced time picker functionality with improved keyboard navigation, advanced accessibility features for dropdown components, and significant bug fixes for better user experience.
Speed up your responsive apps and websites with fully-featured, ready-to-use open-source admin panel templates—free to use and built for efficiency.
Configurable ARIA Labels: Added comprehensive aria-label options for time picker
ariaSelectHoursLabel - Custom label for hours selection
ariaSelectMinutesLabel - Custom label for minutes selection
ariaSelectSecondsLabel - Custom label for seconds selection
ariaSelectMeridiemLabel - Custom label for AM/PM selection
Enhanced screen reader support with proper ARIA roles and attributes
Added listbox, option, aria-selected, and aria-label attributes
Improved keyboard navigation with Home/End key support
<CTimePickerariaSelectHoursLabel="Select hours"ariaSelectMinutesLabel="Select minutes"ariaSelectSecondsLabel="Select seconds"ariaSelectMeridiemLabel="Select AM or PM"/>
CDropdown Enhanced Features
Reference Prop: Addedreference prop for custom positioning targets
Allows dropdown positioning relative to custom elements
Enhanced flexibility for complex layouts
Better integration with dynamic content
Split Button Accessibility: AddedsplitLabel prop to CDropdownToggle
Customizable screen reader text for split buttons
Improved accessibility for dropdown button combinations
Better ARIA support for complex dropdown scenarios
<CDropdown><CDropdownTogglesplitsplitLabel="Toggle dropdown options">Button</CDropdownToggle></CDropdown><CDropdownreference={customElement}><CDropdownMenu>{/* Positioned relative to customElement */}</CDropdownMenu></CDropdown>
🛠 Component Improvements
CTimePicker
Meridiem Handling Fix: Corrected AM/PM switching logic to prevent hour conversion errors
Fixed 12h/24h format conversion issues
Added bounds checking to prevent invalid hour values (0-23 range)
Prevented double conversion errors when switching meridiem multiple times
Ensured accurate time representation during AM/PM toggling
CDropdown
Scrollbar Click Fix: Resolved issue where clicking on scrollbars closed the dropdown menu
Focus Trap Implementation: Added focus trap functionality when used with portal
Performance Optimizations: Improved performance with useMemo for context and proper cleanup on unmount
Date Picker Components
Indicator Fix: Corrected disabled condition for date and time picker indicators
Form Integration: Prevented unintended form submission from calendar navigation
Indicator States: Corrected disabled state handling for picker indicators
💡 Migration Notes
New Props
The following new props are available:
// Time Picker with custom ARIA labels<CTimePickerariaSelectHoursLabel="Select hours"ariaSelectMinutesLabel="Select minutes"ariaSelectSecondsLabel="Select seconds"ariaSelectMeridiemLabel="Select AM or PM"//Arrowkeynavigationautomaticallyenabled/>// Dropdown with custom positioning<CDropdownreference={customElement}><CDropdownMenu>Content</CDropdownMenu></CDropdown>// Split button with custom accessibility label<CDropdownTogglesplitsplitLabel="Open additional options">PrimaryAction</CDropdownToggle>
No Breaking Changes
All changes are backward compatible. Existing implementations will continue to work without modifications while benefiting from:
Enhanced keyboard navigation in time pickers
Improved accessibility features
Better dropdown interaction handling
Fixed meridiem conversion logic
📖 Technical Details
Arrow Key Navigation Implementation
The arrow key support includes:
Up/Down arrows increment/decrement time values
Left/Right arrows move between time parts (hours → minutes → seconds → meridiem)
Proper value wrapping (24 hours, 60 minutes/seconds)
Integration with existing validation and formatting
Focus Trap Enhancement
The dropdown focus trap provides:
Automatic focus containment within dropdown portals
Proper focus restoration when closing dropdowns
Escape key handling for accessibility
Integration with existing keyboard navigation
Performance Optimizations
Performance improvements include:
Optimized context usage with useMemo
Proper cleanup on component unmount
Reduced re-renders in dropdown components
Memory-efficient event handling
Upgrade to CoreUI PRO for React v5.22.0 today to provide your users with enhanced keyboard navigation, improved accessibility, and more stable dropdown interactions. This release demonstrates our continued commitment to delivering high-quality, accessible UI components.
📚 Learn More
For detailed documentation and implementation examples, visit: