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

chore: Stepperのmarkupを整える #5418

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

Conversation

AtsushiM
Copy link
Member

関連URL

概要

変更内容

確認方法

Copy link

pkg-pr-new bot commented Feb 27, 2025

Open in Stackblitz

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

commit: f21f283

Comment on lines -102 to +108
<Heading type="sectionTitle" className={classNames.heading}>
{label}
</Heading>
<div className={classNames.labelWrapper}>
<div className={classNames.stepCounterWrapper}>
<span className={classNames.beforeLine} />
<StepCounter status={status} current={current} stepNumber={stepNumber} />
<span className={classNames.afterLine} />
</div>
</SectioningFragment>
<Text styleType="sectionTitle" className={classNames.label}>
{label}
</Text>
Copy link
Member Author

Choose a reason for hiding this comment

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

Headingの内容に当たるものがHorizontal(横方向)のStepperには存在しないため、Textに変更しました

@@ -74,7 +74,7 @@ export const VerticalStepItem: FC<Props> = ({ stepNumber, label, status, childre

return (
<li aria-current={current ? 'step' : undefined} className={classNames.wrapper}>
<SectioningFragment>
<Section>
Copy link
Member Author

Choose a reason for hiding this comment

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

liごとに暗黙のoutlineが切られることになるため、このままでも大きな問題にはなりません。
が、実用上SectioningFragmentとSectionでレンダリングコストがほぼ変わらないこと、テストを書く際の within_section のように特定の構造に対するテストなどが書きづらいため、Sectionに変更しました

@AtsushiM AtsushiM marked this pull request as ready for review February 28, 2025 01:24
@AtsushiM AtsushiM requested a review from a team as a code owner February 28, 2025 01:24
@AtsushiM AtsushiM requested review from misako0927 and nabeliwo and removed request for a team February 28, 2025 01:24
Copy link
Contributor

@oti oti 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