From 957e1cbd20d0b49430d909d7aa66ff4bd48cc233 Mon Sep 17 00:00:00 2001 From: jongomez Date: Wed, 18 Oct 2023 00:20:50 +0100 Subject: [PATCH] fix: small comment updates --- packages/lsd-react/src/components/Calendar/YearControl.tsx | 2 ++ .../lsd-react/src/components/DateField/DateField.styles.ts | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/lsd-react/src/components/Calendar/YearControl.tsx b/packages/lsd-react/src/components/Calendar/YearControl.tsx index 5820f90..4d778d2 100644 --- a/packages/lsd-react/src/components/Calendar/YearControl.tsx +++ b/packages/lsd-react/src/components/Calendar/YearControl.tsx @@ -58,6 +58,8 @@ export const YearControl: FC = ({ } }, [changeYearMode]) + // The following useEffect adds more years to the dropdown when + // users scroll to the top or bottom. useEffect(() => { const scrollHeight = scrollRef?.current?.scrollHeight const clientHeight = scrollRef?.current?.clientHeight diff --git a/packages/lsd-react/src/components/DateField/DateField.styles.ts b/packages/lsd-react/src/components/DateField/DateField.styles.ts index dcb0e92..791ac6d 100644 --- a/packages/lsd-react/src/components/DateField/DateField.styles.ts +++ b/packages/lsd-react/src/components/DateField/DateField.styles.ts @@ -43,8 +43,8 @@ export const DateFieldStyles = css` } .${dateFieldClasses.inputContainer} { - // Position relative allows the icons to be absolute positioned... - // ... and the icons should be absolute positioned to be on top of the browser's default icons. + /* Position relative allows the icons to be absolute positioned... */ + /* ... and the icons should be absolute positioned to be on top of the browser's default icons. */ position: relative; display: flex; align-items: center;