fix: small comment updates

This commit is contained in:
jongomez 2023-10-18 00:20:50 +01:00 committed by Jon
parent aece48d2d2
commit 957e1cbd20
2 changed files with 4 additions and 2 deletions

View File

@ -58,6 +58,8 @@ export const YearControl: FC<YearControlProps> = ({
} }
}, [changeYearMode]) }, [changeYearMode])
// The following useEffect adds more years to the dropdown when
// users scroll to the top or bottom.
useEffect(() => { useEffect(() => {
const scrollHeight = scrollRef?.current?.scrollHeight const scrollHeight = scrollRef?.current?.scrollHeight
const clientHeight = scrollRef?.current?.clientHeight const clientHeight = scrollRef?.current?.clientHeight

View File

@ -43,8 +43,8 @@ export const DateFieldStyles = css`
} }
.${dateFieldClasses.inputContainer} { .${dateFieldClasses.inputContainer} {
// Position relative allows the icons to be absolute positioned... /* 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. /* ... and the icons should be absolute positioned to be on top of the browser's default icons. */
position: relative; position: relative;
display: flex; display: flex;
align-items: center; align-items: center;