POC: new options for widget lit#230
Closed
FranceBe wants to merge 15 commits intochore/poc-widgets-webcomponentfrom
Closed
POC: new options for widget lit#230FranceBe wants to merge 15 commits intochore/poc-widgets-webcomponentfrom
FranceBe wants to merge 15 commits intochore/poc-widgets-webcomponentfrom
Conversation
c6df597 to
b27d124
Compare
87e763e to
ac859d8
Compare
b27d124 to
1eac90c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✨ New Customization Options & Features for Alma Widgets (Lit)
🎯 Overview
This PR adds extensive new customization options to the Alma Widgets Lit implementation, focusing on visual flexibility, theming, and layout variants to better match merchant brand guidelines and integration contexts.
🎨 New Features
1. Color Scheme Options (
colorScheme)Allows merchants to customize the widget's primary color to match their brand or page theme.
Available options:
orange(default) - Alma's signature orangelight-gray- Subtle light gray themegray- Medium gray themedark-gray- Dark gray themewhite- White theme (for dark backgrounds)black- Black themeUsage:
Impact:
2. Compact Mode (
compactMode)A condensed version of the widget with reduced size and minimalist styling.
Features:
Usage:
Use cases:
3. Inline Compact Mode (
inlineCompact)Shrinks the widget width to fit only the necessary content (no full-width expansion).
Behavior:
compactModeUsage:
Use cases:
4. Plan Button Style (
planStyle)Choose between traditional buttons or modern tab-style display.
Options:
buttons(default) - Classic button designtabs- Tab-style navigation lookUsage:
Benefits:
5. Modal Panel Mode (
panelMode)Display the modal as a right-side sliding panel instead of centered overlay.
Features:
Usage:
6. Bottom Sheet Mode (
bottomSheet)On desktop, display modal as a bottom sheet (drawer from bottom).
Features:
Usage:
Note: Mobile always uses bottom sheet by default (< 800px width).
📦 Widget Options Summary
Payment Plans Widget
colorSchemestring'orange'compactModebooleanfalseinlineCompactbooleanfalseplanStyle'buttons' | 'tabs''buttons'monochromebooleanfalsehideBorderbooleanfalseModal Widget
panelModebooleanfalsebottomSheetbooleanfalseplanStyle'buttons' | 'tabs''buttons'Schedule Widget
New widget available as a "standalone" widget to display uniquely the schedule, with or without a plan selector. With customizable options.
smallbooleanfalsemonochromebooleanfalsehideBorderbooleanfalselightbooleanfalse📚 Documentation Updates
examples/folder🎬 Demo
Visit
examples/playground.htmlto test all new options interactively:🔄 Migration Guide
All new options are opt-in and backward compatible. Existing integrations continue to work without changes.
To use new features:
📊 Before/After Comparison
Color Customization
Before: Only orange or monochrome (black/white)
After: 6 color schemes + better contrast handling
Layout Variants
Before: Single full-width layout
After: Compact, inline-compact, tab-style variants
Modal Positioning
Before: Centered overlay only
After: Centered, right-panel, or bottom-sheet
✅ Checklist