Skip to content

Commit

Permalink
make sure watermark is visible on transitional forms
Browse files Browse the repository at this point in the history
  • Loading branch information
sharlotta93 committed Oct 18, 2024
1 parent 212813d commit feaf9d5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@awell-health/ui-library",
"version": "0.1.73",
"version": "0.1.74",
"description": "UI components to integrate with Awell Health",
"repository": {
"type": "git",
Expand Down
2 changes: 2 additions & 0 deletions src/globalStyles/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ html {
/* 56px */
--spacing-16: 4rem;
/* 64px */
--spacing-18: 4.5rem;
/* 72px */
--spacing-20: 5rem;
/* 80px */
--spacing-24: 6rem;
Expand Down
4 changes: 2 additions & 2 deletions src/hostedPages/activities/form/TraditionalForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const TraditionalForm = ({
if (scrollHintOverlayRef.current) {
const { scrollTop, scrollHeight, clientHeight } =
document.documentElement
const isAtBottom = scrollTop + clientHeight >= scrollHeight
const isAtBottom = scrollTop + clientHeight >= scrollHeight - 1
scrollHintOverlayRef.current.style.top = isAtBottom ? '100%' : 'auto'
}
}
Expand Down Expand Up @@ -104,7 +104,7 @@ export const TraditionalForm = ({
</div>
)}
{form?.trademark && (
<div className={`${classes.trademark} ${classes.conversational}`}>
<div className={`${classes.trademark} ${classes.traditional}`}>
{form.trademark}
</div>
)}
Expand Down
6 changes: 3 additions & 3 deletions src/hostedPages/activities/form/form.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
}

&.traditional {
padding-bottom: var(--awell-spacing-6);
padding-bottom: var(--spacing-18)
}
&.conversational {
padding-top: var(--awell-spacing-4);
Expand All @@ -104,8 +104,8 @@
bottom: 50px;
left: 0;
width: 100%;
height: 70px;
background: linear-gradient(to bottom, transparent, var(--awell-neutralLight10) 100%);
height: 50px;
background: linear-gradient(to bottom, transparent, var(--awell-neutralLight10) 50%);
pointer-events: none; /* Prevent interaction */
transition: top 0.5s ease-in-out;
}

0 comments on commit feaf9d5

Please sign in to comment.