From 80006055382ebf8a61d7d6ec50bb809b3a079b75 Mon Sep 17 00:00:00 2001 From: Qs-F Date: Thu, 6 Feb 2025 12:55:11 +0900 Subject: [PATCH] =?UTF-8?q?fix(ActionDialog,Formdialog):=20=E3=82=B9?= =?UTF-8?q?=E3=82=AF=E3=83=AD=E3=83=BC=E3=83=AB=E3=81=A7=E3=81=8D=E3=81=AA?= =?UTF-8?q?=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Dialog/ActionDialog/ActionDialogContentInner.tsx | 8 ++++---- .../Dialog/FormDialog/FormDialogContentInner.tsx | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) 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 = ({ )} -
+ ) }