diff --git a/packages/smarthr-ui/src/components/Dialog/ActionDialog/ActionDialogContentInner.tsx b/packages/smarthr-ui/src/components/Dialog/ActionDialog/ActionDialogContentInner.tsx index 26ea7b34f4..04789922be 100644 --- a/packages/smarthr-ui/src/components/Dialog/ActionDialog/ActionDialogContentInner.tsx +++ b/packages/smarthr-ui/src/components/Dialog/ActionDialog/ActionDialogContentInner.tsx @@ -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' @@ -99,8 +98,9 @@ export const ActionDialogContentInner: FC = ({ }, []) return ( - // eslint-disable-next-line smarthr/a11y-heading-in-sectioning-content -
+ // スクロールできるようにするため、Stack[as="section"]を使用 + // eslint-disable-next-line smarthr/best-practice-for-layouts, smarthr/a11y-heading-in-sectioning-content + {children} @@ -128,7 +128,7 @@ export const ActionDialogContentInner: FC = ({ )} -
+ ) } diff --git a/packages/smarthr-ui/src/components/Dialog/FormDialog/FormDialogContentInner.tsx b/packages/smarthr-ui/src/components/Dialog/FormDialog/FormDialogContentInner.tsx index 5c6642aa1a..ac23cd6849 100644 --- a/packages/smarthr-ui/src/components/Dialog/FormDialog/FormDialogContentInner.tsx +++ b/packages/smarthr-ui/src/components/Dialog/FormDialog/FormDialogContentInner.tsx @@ -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' @@ -124,8 +123,9 @@ export const FormDialogContentInner: FC = ({ }, []) return ( - // eslint-disable-next-line smarthr/a11y-prohibit-sectioning-content-in-form, smarthr/a11y-heading-in-sectioning-content -
+ // スクロールできるようにするため、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 +
@@ -154,7 +154,7 @@ export const FormDialogContentInner: FC = ({ )} -
+ ) }