Skip to content

Commit 81ae997

Browse files
authored
Merge pull request #1614 from chaynHQ/develop
Merge Develop onto Main
2 parents 939420e + e057157 commit 81ae997

File tree

5 files changed

+59
-40
lines changed

5 files changed

+59
-40
lines changed

components/layout/CookieBanner.tsx

Lines changed: 37 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ const CookieBanner = () => {
2323

2424
const consentBoxStyle: React.CSSProperties = {
2525
backgroundColor: theme.palette.secondary.light,
26-
maxWidth: isMobileScreen ? 'none' : theme.spacing(50),
26+
maxWidth: isMobileScreen ? 'none' : theme.spacing(54),
2727
maxHeight: theme.spacing(35),
2828
position: 'fixed',
29-
left: isMobileScreen ? 0 : theme.spacing(2),
29+
right: isMobileScreen ? 0 : theme.spacing(2),
3030
bottom: isMobileScreen
3131
? mobileBottomNavHeight
3232
: isTabletScreen
@@ -36,23 +36,29 @@ const CookieBanner = () => {
3636
boxShadow: `${alpha(theme.palette.common.black, 0.2)} 0px ${theme.spacing(1)} ${theme.spacing(
3737
4,
3838
)} 0px`,
39-
textAlign: 'center',
4039
lineHeight: 1.5,
4140
marginRight: isMobileScreen ? 0 : theme.spacing(2),
42-
padding: isMobileScreen
43-
? `${theme.spacing(3)} ${theme.spacing(2)} `
44-
: `${theme.spacing(2)} ${theme.spacing(4)}`,
41+
padding: `${theme.spacing(3)} ${theme.spacing(2)} `,
4542
zIndex: 5,
4643
};
44+
45+
const rowContainerStyle = {
46+
display: 'flex',
47+
alignItems: 'center',
48+
gap: 2,
49+
mb: 1,
50+
} as const;
51+
4752
const acceptButtonStyle = {
4853
backgroundColor: 'secondary.main',
54+
marginLeft: '0.5rem',
4955
float: 'inline-end',
5056
':hover': {
5157
backgroundColor: 'secondary.dark',
5258
},
5359
};
5460
const declineButtonStyle = {
55-
float: 'inline-start',
61+
float: 'inline-end',
5662
fontWeight: 'normal',
5763
color: theme.palette.text.primary,
5864
};
@@ -121,28 +127,30 @@ const CookieBanner = () => {
121127
ariaDeclineLabel={tS('cookieConsent.declineLabel')}
122128
flipButtons={true}
123129
>
124-
<Box width={[50, 70]} margin="auto" mb={1}>
125-
<Image
126-
alt={tS('alt.cookieCat')}
127-
src={IllustrationCookieCat}
128-
sizes={getImageSizes(70)}
129-
style={{
130-
width: '100%',
131-
height: 'auto',
132-
}}
133-
/>
134-
</Box>
135-
<Box mb={2}>
136-
<Typography fontSize={'0.875rem !important'}>
137-
{tS('cookieConsent.cookieConsentExplainer')}
138-
<Link
139-
target="_blank"
140-
href="https://chayn.notion.site/Cookie-Policy-e478b184ea6a4002ba660d052f332c5a"
141-
>
142-
{tS('cookieConsent.cookieConsentPolicy')}
143-
</Link>
144-
.
145-
</Typography>
130+
<Box sx={rowContainerStyle}>
131+
<Box width={50} height={50}>
132+
<Image
133+
alt={tS('alt.cookieCat')}
134+
src={IllustrationCookieCat}
135+
sizes={getImageSizes(50)}
136+
style={{
137+
width: '100%',
138+
height: 'auto',
139+
}}
140+
/>
141+
</Box>
142+
<Box flex={1}>
143+
<Typography fontSize={'0.875rem !important'}>
144+
{tS('cookieConsent.cookieConsentExplainer')}
145+
<Link
146+
target="_blank"
147+
href="https://chayn.notion.site/Cookie-Policy-e478b184ea6a4002ba660d052f332c5a"
148+
>
149+
{tS('cookieConsent.cookieConsentPolicy')}
150+
</Link>
151+
.
152+
</Typography>
153+
</Box>
146154
</Box>
147155
</CookieConsent>
148156
);

components/layout/HomeHeader.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const headerContainerStyles = {
3232
...rowStyle,
3333
alignItems: 'center',
3434
minHeight: { xs: 220, lg: 360 },
35+
pt: 10,
3536
paddingBottom: { xs: '3rem !important', sm: '4rem !important' },
3637
gap: 1,
3738
background: theme.palette.bloomGradient,
@@ -51,8 +52,6 @@ const imageContainerStyle = {
5152

5253
const textContainerStyle = {
5354
...columnStyle,
54-
pl: { xs: 3, sm: 0 },
55-
pr: { xs: 6, sm: 0 },
5655
justifyContent: 'space-between',
5756
width: { xs: '100%', sm: 'auto' },
5857
maxWidth: { xs: '100%', sm: '50%', md: '60%' },

components/layout/MobileBottomNav.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@ const mobileBottomNavStyle = {
3232
right: 0,
3333
background: 'linear-gradient(180deg, #F3D6D8 36.79%, #FFEAE1 73.59%)',
3434
borderTop: 2,
35-
borderColor: 'background.paper',
35+
borderColor: 'common.white',
3636
boxShadow: '0 -2px 10px rgba(0,0,0,0.1)',
3737
zIndex: 1100,
3838
height: mobileBottomNavHeight,
39-
overflow: 'scroll',
39+
overflowX: 'scroll',
40+
overflowY: 'hidden',
4041
} as const;
4142

4243
const navContainerStyle = {

cypress/integration/tests/videos.cy.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,8 @@ describe('Videos Flow', () => {
3737
cy.get('[data-testid="team-member-card"]').should('exist');
3838

3939
// Feedback form appears
40-
cy.contains('h2', 'How was this session?', { timeout: 10000 }).should('be.visible');
41-
4240
// Click the Send button and check for error message
43-
cy.get('button').contains('Send').click();
41+
cy.get('button').contains('Send').should('exist').click();
4442
cy.contains('p', 'Please select a rating before sending.').should('be.visible');
4543

4644
// User selects a rating

styles/hotjarNPS.css

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@
1818
color: #000000 !important;
1919
}
2020

21-
@media (min-width: 480px) {
22-
._hj-widget-container ._hj-s3UIi__styles__globalStyles .css-1r7qyl6.css-1r7qyl6 * {
23-
bottom: 1.5rem;
24-
}
21+
._hj-widget-container ._hj-s3UIi__styles__globalStyles .css-1xaw8mu,
22+
._hj-widget-container ._hj-s3UIi__styles__globalStyles .css-1xaw8mu.css-1xaw8mu {
23+
bottom: 6.25rem !important;
24+
height: 2.75rem !important;
25+
overflow: visible !important;
2526
}
2627

2728
/* Hotjar branding */
@@ -32,9 +33,15 @@
3233
/* Primary button styles */
3334

3435
._hj-widget-container ._hj-s3UIi__styles__globalStyles button[type='button'],
36+
._hj-widget-container
37+
._hj-s3UIi__styles__globalStyles
38+
.css-sm1t49.css-sm1t49.css-sm1t49.css-sm1t49.css-sm1t49.css-sm1t49.css-sm1t49.css-sm1t49.css-sm1t49,
3539
._hj-widget-container
3640
._hj-s3UIi__styles__globalStyles
3741
.css-1ce3vb4.css-1ce3vb4.css-1ce3vb4.css-1ce3vb4.css-1ce3vb4.css-1ce3vb4.css-1ce3vb4.css-1ce3vb4.css-1ce3vb4,
42+
._hj-widget-container
43+
._hj-s3UIi__styles__globalStyles
44+
.css-meobdt.css-meobdt.css-meobdt.css-meobdt.css-meobdt.css-meobdt.css-meobdt.css-meobdt.css-meobdt,
3845
.css-zwfoj4.css-zwfoj4.css-zwfoj4.css-zwfoj4.css-zwfoj4.css-zwfoj4.css-zwfoj4.css-zwfoj4.css-zwfoj4.css-zwfoj4.css-zwfoj4 {
3946
background-color: #ffbfa4 !important;
4047
color: #000000 !important;
@@ -48,6 +55,12 @@
4855

4956
._hj-widget-container ._hj-s3UIi__styles__globalStyles button[type='button']:hover,
5057
._hj-widget-container ._hj-s3UIi__styles__globalStyles button[type='button']:focus,
58+
._hj-widget-container
59+
._hj-s3UIi__styles__globalStyles
60+
.css-sm1t49.css-sm1t49.css-sm1t49.css-sm1t49.css-sm1t49.css-sm1t49.css-sm1t49.css-sm1t49.css-sm1t49:hover,
61+
._hj-widget-container
62+
._hj-s3UIi__styles__globalStyles
63+
.css-sm1t49.css-sm1t49.css-sm1t49.css-sm1t49.css-sm1t49.css-sm1t49.css-sm1t49.css-sm1t49.css-sm1t49:focus,
5164
._hj-widget-container
5265
._hj-s3UIi__styles__globalStyles
5366
.css-1ce3vb4.css-1ce3vb4.css-1ce3vb4.css-1ce3vb4.css-1ce3vb4.css-1ce3vb4.css-1ce3vb4.css-1ce3vb4.css-1ce3vb4:hover,

0 commit comments

Comments
 (0)