Skip to content

Commit 8092e91

Browse files
authored
Merge pull request #1 from AnerysRynz/main
Hmmm
2 parents 925d64d + 4fa57cc commit 8092e91

7 files changed

Lines changed: 516 additions & 70 deletions

File tree

CHANGELOG.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,57 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [2.1.1] - 2026-03-07
9+
10+
### Fixed
11+
- **Memory Leak**: Fixed carousel autoplay infinite interval leak by properly clearing intervals on destroy
12+
- **Modal Scroll Lock**: Improved scroll locking with scrollbar width compensation
13+
- **Dropdown Detection**: Enhanced outside click detection for more reliable dropdown closing
14+
- **Modal Backdrop**: Fixed backdrop click detection to prevent accidental modal closing
15+
- **Tooltip Management**: Improved tooltip visibility toggling with centralized hide function
16+
17+
### Added
18+
- **Carousel Enhancements**:
19+
- Functional carousel indicators/pagination system
20+
- Touch/swipe gesture support for mobile devices
21+
- Auto-pause carousel on hover, resume on mouse leave
22+
- `carousel:change` custom event on slide transitions
23+
- Indicator clicking to jump to specific slides
24+
25+
- **Dropdown Improvements**:
26+
- Keyboard navigation with Arrow Up/Down keys
27+
- Enter/Space key support for item selection
28+
- Auto-focus first item when dropdown opens
29+
- Better active dropdown state tracking
30+
31+
- **Tab Enhancements**:
32+
- Keyboard navigation with Arrow keys
33+
- Smooth scroll into view for tab content
34+
- `tabs:change` custom event on tab switching
35+
36+
- **Modal Improvements**:
37+
- Scroll position restoration on modal close
38+
- `modal:open` and `modal:close` custom events
39+
- Better focus management within modals
40+
41+
- **Toast Notifications**:
42+
- Proper ARIA attributes for accessibility
43+
- `toast:open` and `toast:close` custom events
44+
45+
- **API Methods**:
46+
- `closeAllDropdowns()`: Programmatically close all dropdowns
47+
- `hideAllTooltips()`: Programmatically hide all tooltips
48+
- `destroy()`: Cleanup method for memory management
49+
- Global `window.zyroxCSS` instance access
50+
51+
### Enhanced
52+
- **Accessibility**: Improved ARIA attributes and focus management across all components
53+
- **UI Animations**: Enhanced transitions with better cubic-bezier timing (200ms for dropdowns, 500ms for carousel)
54+
- **Carousel Controls**: Improved button states and indicator styling with animation on active
55+
- **Focus States**: Better visual feedback with outline styling for keyboard navigation
56+
- **Dropdown Transitions**: Smoother animations and better state management
57+
- **Modal Animations**: Enhanced backdrop blur effect and improved timing
58+
859
## [2.1.0] - 2026-03-06
960

1061
### Added

changelogs/v2.1.1.md

Lines changed: 153 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
# ZyroxCSS v2.1.1 - Bug Fixes & Enhancement Release
2+
3+
**Release Date**: March 7, 2026
4+
**Status**: Stable & Production Ready
5+
**Type**: Patch Release
6+
7+
---
8+
9+
## 🐛 Bug Fixes
10+
11+
### JavaScript Components
12+
- **Memory Leak Fix**: Fixed carousel infinite loop memory leak by properly managing and clearing autoplay intervals
13+
- **Modal Scroll Lock**: Improved body scroll locking with proper padding compensation for scrollbar width
14+
- **Dropdown Detection**: Enhanced outside click detection for more reliable dropdown closing
15+
- **Modal Backdrop**: Fixed backdrop click detection to prevent closing when clicking on modal content
16+
- **Tooltip Management**: Improved tooltip visibility toggling with centralized hide function
17+
18+
### Accessibility Improvements
19+
- Added proper ARIA attributes to interactive elements
20+
- Improved focus management for keyboard navigation
21+
- Better focus visibility on carousel indicators and controls
22+
- Enhanced screen reader announcements for toast notifications
23+
24+
---
25+
26+
## ✨ New Features
27+
28+
### JavaScript Enhancements
29+
30+
#### Carousel Improvements
31+
- **Carousel Indicators**: Fully functional carousel indicators/pagination system
32+
- **Touch/Swipe Support**: Added swipe gesture support for mobile devices
33+
- **Indicator Linking**: Click carousel indicators to jump to specific slides
34+
- **Autoplay Control**: Carousel pauses on hover and resumes on mouse leave
35+
- **Custom Events**: Carousel emits `carousel:change` event on slide transitions
36+
37+
#### Dropdown Enhancements
38+
- **Keyboard Navigation**: Arrow keys (Up/Down) to navigate dropdown items
39+
- **Enter/Space Support**: Press Enter or Space to select dropdown items
40+
- **Focus Management**: Auto-focus first item when dropdown opens
41+
- **State Management**: Better active dropdown tracking
42+
43+
#### Tab Improvements
44+
- **Keyboard Navigation**: Use Arrow keys (Up/Down/Left/Right) to switch between tabs
45+
- **Smooth Scrolling**: Tab content smoothly scrolls into view when activated
46+
- **Custom Events**: Tabs emit `tabs:change` event on tab switching
47+
48+
#### Modal Enhancements
49+
- **Scroll Position Restoration**: Remembers and restores scroll position when modal closes
50+
- **Custom Events**: Modal emits `modal:open` and `modal:close` events
51+
- **Focus Trapping**: Better focus management within modals
52+
53+
#### Toast Improvements
54+
- **ARIA Attributes**: Proper accessibility attributes for toast notifications
55+
- **Custom Events**: Emit `toast:open` and `toast:close` events
56+
- **Faster Animations**: Improved animation timing for better UX
57+
58+
#### Alert Enhancements
59+
- **Smooth Dismissal**: Enhanced alert close animation with slide-out effect
60+
- **Custom Events**: Emit `alert:close` event on dismissal
61+
62+
### API Improvements
63+
```javascript
64+
// Instance is now available globally
65+
window.zyroxCSS // Access the initialized ZyroxCSS instance
66+
67+
// New destroy method for cleanup
68+
zyroxCSS.destroy()
69+
70+
// Close all dropdowns programmatically
71+
zyroxCSS.closeAllDropdowns()
72+
73+
// Hide all tooltips programmatically
74+
zyroxCSS.hideAllTooltips()
75+
```
76+
77+
---
78+
79+
## 🎨 UI/Visual Improvements
80+
81+
### Modal Styling
82+
- Enhanced backdrop blur effect (2px blur filter)
83+
- Improved animation timing with cubic-bezier curves
84+
- Better shadow system for depth perception
85+
86+
### Dropdown Styling
87+
- Smoother transition animations (200ms)
88+
- Improved focus visible states with outline styling
89+
- Enhanced hover effects with smoother padding transitions
90+
91+
### Carousel Controls
92+
- Better button states and transitions
93+
- Improved indicator styling with active state transformation
94+
- Enhanced indicator width change on active states (8px → 28px with border-radius)
95+
96+
### General Improvements
97+
- Consistent transition timing across all components
98+
- Better visual feedback for all interactive elements
99+
- Enhanced focus states for keyboard navigation
100+
101+
---
102+
103+
## 🔧 Technical Improvements
104+
105+
### State Management
106+
- Introduced proper component state tracking
107+
- Better memory management with interval cleanup
108+
- Added instance variables for managing active elements
109+
110+
### Event System
111+
- Custom events emitted for component interactions
112+
- Better event delegation and handling
113+
- Improved event listener cleanup
114+
115+
### Performance
116+
- Reduced redraws and reflows in carousel operations
117+
- Optimized dropdown state management
118+
- Better use of CSS transitions instead of JS animations
119+
120+
---
121+
122+
## 📝 Documentation Updates
123+
124+
- Updated API documentation with new keyboard navigation features
125+
- Added custom events reference
126+
- Enhanced component examples with keyboard interactions
127+
128+
---
129+
130+
## 🔄 Migration Guide
131+
132+
**No breaking changes from v2.1.0**. All improvements are backward compatible.
133+
134+
### Recommended Updates
135+
1. Test keyboard navigation in your applications (now supported in dropdowns and tabs)
136+
2. Consider using new custom events for better integration
137+
3. Test touch/swipe functionality on mobile devices with carousels
138+
139+
---
140+
141+
## 📊 Changes Summary
142+
143+
- **Files Changed**: 4 (zyroxcss.js, _modal.scss, _dropdown.scss, _carousel.scss)
144+
- **Bug Fixes**: 7
145+
- **New Features**: 12+
146+
- **Performance**: 3 improvements
147+
- **Accessibility**: 6 enhancements
148+
149+
---
150+
151+
## 🙏 Notes
152+
153+
This patch release focuses on improving robustness, accessibility, and user experience. All components now have better keyboard support, improved state management, and enhanced animations.

package-lock.json

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)