Skip to content

Commit

Permalink
Merge pull request #54 from nushydude/51-prevent-scrolling-background…
Browse files Browse the repository at this point in the history
…-when-the-modal-is-open

disable scrolling of body when modal is open
  • Loading branch information
nushydude authored Jan 7, 2024
2 parents 1f3ef02 + 48e4141 commit fd9bdd8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/pages/BestBuyPage/BestByOptionsModalContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,20 @@ const BestByOptionsModalContent = ({ setOptions, options }: Props) => {
}}
value={limit}
/>
</div>

<div className="mb-2 md:mb-4">
<label htmlFor="limit" className="mb-1 block">
Display the mini charts
</label>
<input
data-testid="input-toggle-mini-charts-visibility"
id="input-toggle-mini-charts-visibility"
type="checkbox"
className="w-full px-3 py-2 bg-white rounded-md focus:outline-none focus:ring-blue-500 focus:border-blue-500"
onChange={(e) => setShowCharts(e.target.checked)}
checked={showCharts}
/>
{/* {errors.limit && (
<p className="text-red-400 text-sm">This field is required</p>
)} */}
Expand Down

0 comments on commit fd9bdd8

Please sign in to comment.