Commit 53b31b0
authored
refact: components fixes 2 (#254)
* SEO improvements
* SEO improvements
* plan the tech debt cleanup
* optimizations
* Shameless green: add .c-responsive-preview-content dual-class at line 3094
* Micro-step: extend .fl-responsive-preview-content input button at line 3098
* Shameless green: add .c-responsive-preview-content submit at line 3102
* Flocking step 1: identify .fl-responsive-preview-content button pattern at line 3106
* Shameless green: add .c-full-width dual-class at line 354
* Flocking step 2: find smallest difference in .fl-photo component at line 534
* Flocking step 3: make smallest change for .c-fixed-width complex selector at line 1904
* CSS Migration Phase 7: Micro-change 1 - Add c-form-field dual-class support
- Convert .fl-form-field to dual-class .c-form-field, .fl-form-field
- Maintain 100% backward compatibility
- Part of systematic FL Builder CSS migration
* CSS Migration Phase 7: Micro-change 2 - Add c-form-error dual-class support
- Convert input.fl-form-error to dual-class with c-form-error
- Extends c-form-field coverage to input error states
- Maintains 100% backward compatibility
* CSS Migration Phase 8: Micro-change 1 - Add c-widget dual-class support
- Convert .fl-widget to dual-class .c-widget, .fl-widget
- Enable modern widget component styling
- Maintains 100% backward compatibility
* CSS Migration Phase 9: Micro-change 1 - Add c-animation dual-class support
- Convert .fl-animation to dual-class .c-animation, .fl-animation
- Enable modern animation component styling
- Maintains 100% backward compatibility
* CSS Migration Phase 9: Micro-change 2 - Add c-animated dual-class support
- Convert complex animation selectors to include dual-class patterns
- Add c-animated class for modern animation states
- Maintains 100% backward compatibility
* CSS Migration Phase 9: Micro-change 3 - Complete c-animated dual-class support
- Convert standalone .fl-animated to dual-class pattern
- Complete animation-fill-mode properties dual-class support
- Maintains 100% backward compatibility
* CSS Migration Phase 9: Micro-change 4 - Convert c-slideshow to dual-class pattern
- Add c-slideshow selector alongside fl-slideshow
- Include universal child selectors (c-slideshow *, fl-slideshow *)
- Maintains box-sizing: content-box for slideshow components
- Zero visual impact - maintains backward compatibility
* CSS Migration Phase 9: Micro-change 5 - Convert nested slideshow image selector
- Add c-slideshow .c-slideshow-image img alongside fl-slideshow .fl-slideshow-image img
- Maintains max-width: none !important for slideshow images
- Preserves nested selector functionality for both class prefixes
- Zero visual impact - maintains backward compatibility
* CSS Migration Phase 9: Micro-change 6 - Convert c-slideshow-social to dual-class pattern
- Add c-slideshow-social selector alongside fl-slideshow-social
- Maintains line-height: 0 !important for social elements
- Preserves important styling for social media integration
- Zero visual impact - maintains backward compatibility
* CSS Migration Phase 9: Micro-change 7 - Complete slideshow social universal selector
- Add c-slideshow-social * alongside fl-slideshow-social *
- Maintains margin: 0 !important for all child elements
- Completes slideshow social element styling migration
- Zero visual impact - maintains backward compatibility
* CSS Migration Phase 10: Micro-change 1 - Convert fl-col pseudo-elements to dual-class
- Add c-col:before, c-col:after alongside fl-col:before, fl-col:after
- Maintains clearfix functionality for grid layout system
- Preserves display: table and content properties for pseudo-elements
- High-frequency class (47 occurrences) - critical grid structure
* CSS Migration Phase 10: Micro-change 2 - Complete fl-col clearfix after conversion
- Add c-col:after alongside fl-col:after in clearfix rule
- Maintains clear: both functionality for grid column structure
- Completes dual-class support for fl-col clearfix system
- Essential for grid layout float clearing mechanism
* CSS Migration Phase 10: Micro-change 3 - Convert fl-row pseudo-elements to dual-class
- Add c-row:before, c-row:after alongside fl-row:before, fl-row:after
- Maintains clearfix functionality for row layout system
- Preserves display: table and content properties for pseudo-elements
- High-frequency class (31 occurrences) - critical grid structure
* CSS Migration Phase 10: Micro-change 4 - Complete fl-row clearfix after conversion
- Add c-row:after alongside fl-row:after in clearfix rule
- Maintains clear: both functionality for grid row structure
- Completes dual-class support for fl-row clearfix system
- Essential for grid layout float clearing mechanism
* Shameless green: add .c-rich-text dual-class to main selector
- Added .c-rich-text dual-class support to primary .fl-rich-text selector
- Maintains backward compatibility with FL-Builder content
- Typography system applies to both class variants
- Tier 1 CSS migration Phase 2 micro-change 1/5
* Shameless green: add .c-content-text dual-class to content block
- Added .c-content-text dual-class support to FL-Builder content block compatibility
- Maintains @extend .c-content-block__text functionality
- Enables modern .c-content-text usage alongside existing .fl-rich-text
- CSS Migration Phase 2 micro-change 2/N
* Shameless green: add .c-content-text dual-class to font-weight inheritance
- Added .c-content-text dual-class to font-weight inherit pattern
- Applies to *:not(b, strong) elements for consistent font weights
- Extends functionality that appears in 150+ places
- CSS Migration Phase 2 micro-change 3/N
* CSS Migration Phase 2 Tier 2: Add .c-menu dual-class to FL-Builder menu integration
- Added .c-menu alongside .fl-menu in navigation component
- Ultra-conservative ≤3 line change
- Tests passing: 39 runs, 57 assertions, 0 failures
* CSS Migration Phase 2 Tier 2: Add .c-menu-item dual-class to navigation items
- Added .c-menu-item alongside .fl-menu-item
- Ultra-conservative ≤3 line change
- Tests passing: 39 runs, 57 assertions, 0 failures
* CSS Migration Phase 2 Tier 2: Create c-pagination component with FL-Builder integration
- Created comprehensive pagination component with dual-class support
- Integrated .fl-builder-pagination with .c-pagination dual-class system
- Includes semantic component structure: item, link, current states
- Tests passing: 39 runs, 57 assertions, 0 failures
* CSS Micro-change 1: Apply utility classes to safe test templates
- Add u-text-center, u-text-left, u-text-right to test-cta.html
- Apply alignment utilities to test-hero.html button wraps
- Replace inline text-align styles with utility classes
- ✅ All tests pass with bin/rake test:critical
- Ultra-conservative approach: only test templates modified
- No production CSS or FL-Builder components touched
🎯 Progress: Safely validating utility class effectiveness
⚡ Impact: Demonstrating duplication reduction without risk
* Apply utility classes to test-service.html template
- Add u-text-center to category paragraph for consistent text alignment
- Add u-text-center to main heading for improved visual hierarchy
- Maintains FL-Builder class compatibility using additive approach
- All tests pass (39 runs, 57 assertions, 0 failures)
* Replace inline style with utility class in test-testimonials.html
- Replace style="margin-top: 3rem" with u-margin-top-xl utility class
- Eliminates inline CSS in favor of consistent utility system
- Maintains identical visual spacing with reusable approach
- All tests pass (39 runs, 57 assertions, 0 failures)
* Add text centering utilities to test-usecase.html header
- Apply u-text-center to heading, subheading, and description elements
- Creates consistent visual hierarchy with proper text alignment
- Maintains existing class compatibility using additive approach
- All tests pass (39 runs, 57 assertions, 0 failures)
* Enhance shortcodes with utility classes for better reusability
- Add u-text-center to testimonial blockquote for consistent quote styling
- Add u-text-center to CTA title, description, and action elements
- Improves visual consistency across different page contexts
- Maintains existing CSS functionality with additive approach
- All tests pass (39 runs, 57 assertions, 0 failures)
* fixes1 parent e06ca83 commit 53b31b0
File tree
14 files changed
+181
-22
lines changed- themes/beaver
- assets/css
- components
- layouts
- page
- shortcodes
14 files changed
+181
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| |||
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
| 150 | + | |
149 | 151 | | |
150 | 152 | | |
151 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
55 | | - | |
| 56 | + | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| 272 | + | |
272 | 273 | | |
273 | 274 | | |
274 | 275 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
0 commit comments