Skip to content

Commit

Permalink
fix: tailwind-variantsのextendを使用するように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Qs-F committed Dec 18, 2024
1 parent 99c77e1 commit 7e4c595
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ export type FormDialogContentInnerProps = BaseProps & {
const CLOSE_BUTTON_LABEL = 'キャンセル'

const formDialogContentInner = tv({
extend: dialogContentInner,
slots: {
// 領域を狭くしたときにwrapperも縮むようにflexを使用
wrapper: 'shr-flex shr-flex-col',
// 領域を狭くしたときにwrapperも縮むようにflexを使用
form: 'shr-overflow-y-auto shr-flex-auto shr-flex shr-flex-col',
contentWrapper: 'shr-overflow-y-auto shr-flex-auto',
},
Expand Down Expand Up @@ -84,12 +88,12 @@ export const FormDialogContentInner: FC<FormDialogContentInnerProps> = ({
)
const isRequestProcessing = responseMessage && responseMessage.status === 'processing'

const { wrapper, actionArea, buttonArea, message } = dialogContentInner()
const { form, contentWrapper } = formDialogContentInner()
const { form, contentWrapper, wrapper, actionArea, buttonArea, message } =
formDialogContentInner()

return (
// eslint-disable-next-line smarthr/a11y-heading-in-sectioning-content, smarthr/a11y-prohibit-sectioning-content-in-form
<Section className={wrapper({ className: 'shr-flex shr-flex-col' })}>
<Section className={wrapper()}>
<DialogHeader title={title} subtitle={subtitle} titleTag={titleTag} titleId={titleId} />
<form onSubmit={handleSubmitAction} className={form()}>
<div className={contentWrapper()}>
Expand Down

0 comments on commit 7e4c595

Please sign in to comment.