feat: gradient overlay direction #54

Closed
opened 2026-06-04 12:05:52 +00:00 by jmiller · 1 comment
Owner

Summary

Replace the flat solid-colour overlay with an optional gradient overlay. A common pattern is a dark gradient at the bottom fading to transparent at the top, improving text readability while keeping the upper portion of the hero image visible.

Requirements

  • New overlayType list field: solid (default), gradient-bottom, gradient-top, gradient-left, gradient-right
  • Reuse the existing overlayColor and overlayOpacity values as the opaque end
  • The transparent end should be rgba(overlayColor, 0)
  • CSS linear-gradient() applied to .mokojoomhero__overlay background
  • Solid mode remains unchanged for backwards compatibility

Acceptance Criteria

  • Overlay can fade from opaque to transparent in four directions
  • Existing solid overlay behaviour is preserved as default
  • Text remains readable with gradient overlay
  • Works with all background modes
## Summary Replace the flat solid-colour overlay with an optional gradient overlay. A common pattern is a dark gradient at the bottom fading to transparent at the top, improving text readability while keeping the upper portion of the hero image visible. ## Requirements - New `overlayType` list field: solid (default), gradient-bottom, gradient-top, gradient-left, gradient-right - Reuse the existing `overlayColor` and `overlayOpacity` values as the opaque end - The transparent end should be `rgba(overlayColor, 0)` - CSS `linear-gradient()` applied to `.mokojoomhero__overlay` background - Solid mode remains unchanged for backwards compatibility ## Acceptance Criteria - [ ] Overlay can fade from opaque to transparent in four directions - [ ] Existing solid overlay behaviour is preserved as default - [ ] Text remains readable with gradient overlay - [ ] Works with all background modes
jmiller added the cssenhancementjoomla labels 2026-06-04 12:05:52 +00:00
Author
Owner

Branch created: feature/54-feat-gradient-overlay-direction

git fetch origin
git checkout feature/54-feat-gradient-overlay-direction
Branch created: [`feature/54-feat-gradient-overlay-direction`](https://git.mokoconsulting.tech/MokoConsulting/MokoJoomHero/src/branch/feature/54-feat-gradient-overlay-direction) ```bash git fetch origin git checkout feature/54-feat-gradient-overlay-direction ```
Sign in to join this conversation.
No labels css enhancement joomla
Type
Status
Priority
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoJoomHero#54