Skip to content

Commit

Permalink
fix(ActionDialog,Formdialog): スクロールできない問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Qs-F committed Feb 6, 2025
1 parent f2f34f6 commit 8000605
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { type DecoratorsType } from '../../../hooks/useDecorators'
import { Button } from '../../Button'
import { Cluster, Stack } from '../../Layout'
import { ResponseMessage } from '../../ResponseMessage'
import { Section } from '../../SectioningContent'
import { DialogBody, type Props as DialogBodyProps } from '../DialogBody'
import { DialogHeader, type Props as DialogHeaderProps } from '../DialogHeader'
import { dialogContentInner } from '../dialogInnerStyle'
Expand Down Expand Up @@ -99,8 +98,9 @@ export const ActionDialogContentInner: FC<ActionDialogContentInnerProps> = ({
}, [])

return (
// eslint-disable-next-line smarthr/a11y-heading-in-sectioning-content
<Section className={styles.wrapper}>
// スクロールできるようにするため、Stack[as="section"]を使用
// eslint-disable-next-line smarthr/best-practice-for-layouts, smarthr/a11y-heading-in-sectioning-content
<Stack as="section" gap={0} className={styles.wrapper}>
<DialogHeader title={title} subtitle={subtitle} titleTag={titleTag} titleId={titleId} />
<DialogBody contentPadding={contentPadding} contentBgColor={contentBgColor}>
{children}
Expand Down Expand Up @@ -128,7 +128,7 @@ export const ActionDialogContentInner: FC<ActionDialogContentInnerProps> = ({
</div>
)}
</Stack>
</Section>
</Stack>
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { type DecoratorsType } from '../../../hooks/useDecorators'
import { Button } from '../../Button'
import { Cluster, Stack } from '../../Layout'
import { ResponseMessage } from '../../ResponseMessage'
import { Section } from '../../SectioningContent'
import { DialogBody, Props as DialogBodyProps } from '../DialogBody'
import { DialogHeader, type Props as DialogHeaderProps } from '../DialogHeader'
import { dialogContentInner } from '../dialogInnerStyle'
Expand Down Expand Up @@ -124,8 +123,9 @@ export const FormDialogContentInner: FC<FormDialogContentInnerProps> = ({
}, [])

return (
// eslint-disable-next-line smarthr/a11y-prohibit-sectioning-content-in-form, smarthr/a11y-heading-in-sectioning-content
<Section className={styles.wrapper}>
// スクロールできるようにするため、Stack[as="section"]を使用
// eslint-disable-next-line smarthr/best-practice-for-layouts, smarthr/a11y-heading-in-sectioning-content, smarthr/a11y-prohibit-sectioning-content-in-form
<Stack as="section" gap={0} className={styles.wrapper}>
<DialogHeader title={title} subtitle={subtitle} titleTag={titleTag} titleId={titleId} />
<form onSubmit={handleSubmitAction} className={styles.form}>
<DialogBody contentPadding={contentPadding} contentBgColor={contentBgColor}>
Expand Down Expand Up @@ -154,7 +154,7 @@ export const FormDialogContentInner: FC<FormDialogContentInnerProps> = ({
)}
</Stack>
</form>
</Section>
</Stack>
)
}

Expand Down

0 comments on commit 8000605

Please sign in to comment.