Skip to content

Commit

Permalink
fix: fixed masquerade button in buyer portal pages
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlLiu2023 committed Jun 6, 2023
1 parent febf0db commit f677f40
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,15 @@ export default function B3MasquradeGobalTip(props: B3MasquradeGobalTipProps) {
color: getContrastColor(color || '#FFFFFF'),
}

const customBuyerPortalPagesStyles: SxProps = {
backgroundColor: `${color || '#FFFFFF'}`,
color: getContrastColor(color || '#FFFFFF'),
padding:
verticalPadding && horizontalPadding
? `${verticalPadding}px ${horizontalPadding}px`
: '',
}

return (
<>
{!isOpen && isMobile && (
Expand Down Expand Up @@ -278,10 +287,9 @@ export default function B3MasquradeGobalTip(props: B3MasquradeGobalTipProps) {
height: '52px',
color: '#FFFFFF',
...sx,
...customStyles,
...MUIMediaStyle,
...customBuyerPortalPagesStyles,
}}
anchorOrigin={getLocation(location) || defaultLocation}
anchorOrigin={defaultLocation}
open
>
<Box
Expand Down Expand Up @@ -364,7 +372,6 @@ export default function B3MasquradeGobalTip(props: B3MasquradeGobalTipProps) {
color: '#FFFFFF',
...sx,
...isMobileCustomStyles,
...MUIMediaStyle,
}}
anchorOrigin={defaultLocation}
open
Expand Down

0 comments on commit f677f40

Please sign in to comment.