Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!: ModelessDialogの見出し部分がHeadingかつ、自動レベル計算されるように修正する SHRUI-961 #5459

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

AtsushiM
Copy link
Member

@AtsushiM AtsushiM commented Mar 14, 2025

関連URL

SHRUI-961

概要

変更内容

確認方法

Copy link

pkg-pr-new bot commented Mar 14, 2025

Open in Stackblitz

npm i https://pkg.pr.new/kufu/smarthr-ui@5459

commit: 52c4d2f

@yagimushi yagimushi force-pushed the fix-modeless-dialog branch from 1ee1ba9 to 1471819 Compare March 14, 2025 06:22
@yagimushi yagimushi force-pushed the fix-modeless-dialog branch from ffe235b to d5919ed Compare March 17, 2025 00:55
@AtsushiM AtsushiM marked this pull request as ready for review March 17, 2025 01:12
@AtsushiM AtsushiM requested a review from a team as a code owner March 17, 2025 01:12
@AtsushiM AtsushiM requested review from misako0927 and Qs-F and removed request for a team March 17, 2025 01:12
@@ -55,7 +56,7 @@ export const DialogOverlap: FC<Props> = ({ isOpen, className, children }) => {
unmountOnExit
nodeRef={nodeRef}
>
<Center verticalCentering ref={nodeRef} className={styles}>
<Center verticalCentering ref={nodeRef} className={styles} as={as}>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

styleの関係でDialog全体をSectionでラップする形に変更します。
asはoptionなのでModelssDialog以外には影響ありません

} = useMemo(() => {
const { overlap, wrapper, headerEl, title, dialogHandler, closeButtonLayout, footerEl } =
modelessDialog()
const classNames = useMemo(() => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

styleのフォーマットを他と合わせてclassNamesにまとめ直しています。

overlap: overlap({ className }),
wrapper: wrapper({ resizable }),
header: headerEl(),
title: titleEl(),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

コンポーネントのheader属性をtitle属性に変更した関係で、内部変数が同じ名称になってしまったため、内部変数の名称を変えています

@AtsushiM AtsushiM changed the title fix!: ModelessDialogの見出し部分がHeadingかつ、自動レベル計算されるように修正する fix!: ModelessDialogの見出し部分がHeadingかつ、自動レベル計算されるように修正する SHRUI-961 Mar 19, 2025
@AtsushiM AtsushiM requested a review from uknmr March 19, 2025 05:16
Copy link
Collaborator

@uknmr uknmr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants