-
Notifications
You must be signed in to change notification settings - Fork 141
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
base: master
Are you sure you want to change the base?
Conversation
commit: |
<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> |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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に変更しました
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
関連URL
概要
変更内容
確認方法