Skip to content

Commit

Permalink
Fix for the select options background color(#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicfix authored Dec 20, 2024
1 parent 9e8e1f1 commit 7415fca
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 3 deletions.
46 changes: 46 additions & 0 deletions src/stories/purchase-flow.stories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,30 @@
"es",
englishLocale,
);
const labyrinthosBranding = {
color_accent: "#B89662",
color_buttons_primary: "#B89662",
color_error: "#f04141",
color_form_bg: "#FFFFFF",
color_page_bg: "#0A2722",
color_product_info_bg: "#465551",
font: "default",
shapes: "pill",
show_product_description: true,
};
const iptvWebBranding = {
color_accent: "#FF3B30",
color_buttons_primary: "#ff3b30",
color_error: "#F2545B",
color_form_bg: "#1f1f1f",
color_page_bg: "#141414",
color_product_info_bg: "#1f1f1f",
font: "default",
shapes: "pill",
show_product_description: false,
};
</script>

<Meta title="PurchaseFlow" />
Expand Down Expand Up @@ -216,6 +240,28 @@
}}
/>

<Story
name="Labyrinthos"
args={{
...defaultArgs,
brandingInfo: {
...brandingInfo,
appearance: labyrinthosBranding,
},
}}
/>

<Story
name="IPTV Web"
args={{
...defaultArgs,
brandingInfo: {
...brandingInfo,
appearance: iptvWebBranding,
},
}}
/>

<Story
name="CustomColorsElements"
args={{
Expand Down
2 changes: 1 addition & 1 deletion src/ui/states/state-needs-payment-info.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
".Input": {
boxShadow: "none",
border: `2px solid ${customColors["grey-ui-dark"]}`,
backgroundColor: "transparent",
backgroundColor: customColors["input-background"],
color: customColors["grey-text-dark"],
},
".Input:focus": {
Expand Down
6 changes: 4 additions & 2 deletions src/ui/theme/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const DEFAULT_FORM_COLORS: Colors = {
"grey-text-light": "rgba(0,0,0,0.5)",
"grey-ui-dark": "rgba(0,0,0,0.125)",
"grey-ui-light": "rgba(0,0,0,0.005)",
"input-background": "transparent",
"input-background": "white",
background: "white",
};

Expand All @@ -48,7 +48,7 @@ export const DEFAULT_INFO_COLORS: Colors = {
"grey-text-light": "rgba(255,255,255,0.5)",
"grey-ui-dark": "rgba(255,255,255,0.125)",
"grey-ui-light": "rgba(255,255,255,0.005)",
"input-background": "transparent",
"input-background": "#000000",
background: "#000000",
};

Expand All @@ -68,10 +68,12 @@ export const ColorsToBrandingAppearanceMapping: Record<

export const FormColorsToBrandingAppearanceMapping = {
...ColorsToBrandingAppearanceMapping,
"input-background": "color_form_bg",
background: "color_form_bg",
};

export const InfoColorsToBrandingAppearanceMapping = {
...ColorsToBrandingAppearanceMapping,
"input-background": "color_product_info_bg",
background: "color_product_info_bg",
};

0 comments on commit 7415fca

Please sign in to comment.