Skip to content

feat: Accordionコンポーネント対応を追加(後方互換性のためAccordionPanelは保持)#1197

Draft
AtsushiM wants to merge 4 commits into
masterfrom
feat/add-accordion-support
Draft

feat: Accordionコンポーネント対応を追加(後方互換性のためAccordionPanelは保持)#1197
AtsushiM wants to merge 4 commits into
masterfrom
feat/add-accordion-support

Conversation

@AtsushiM
Copy link
Copy Markdown
Member

@AtsushiM AtsushiM commented Apr 6, 2026

Summary

smarthr-ui v92でAccordionPanelからAccordionへリネームされたため、両方のコンポーネントをサポートするように更新。

変更内容

追加されたコンポーネント

  • Accordion (新規)
  • AccordionPanel (後方互換性のために保持)

対象ルール

1. best-practice-for-interactive-element

インタラクティブ要素としてAccordion(s)?を追加。

変更ファイル:

  • rules/best-practice-for-interactive-element/index.js
  • test/best-practice-for-interactive-element.js
  • rules/best-practice-for-interactive-element/README.md

2. component-name

コンポーネント名パターンに'Accordion$': 'Accordion$'を追加。

変更ファイル:

  • rules/component-name/index.js
  • test/component-name.js

背景

smarthr-ui v92でAccordionPanelからAccordionへのリネームが行われましたが、v91以前のバージョンを使用しているプロジェクトも存在するため、AccordionPanelの記述も残しています。

Test plan

  • test/best-practice-for-interactive-element.js: 23 tests passed ✅
  • test/component-name.js: 168 tests passed ✅

🤖 Generated with Claude Code

smarthr-ui v92でAccordionPanelからAccordionへリネームされたため、両方をサポート。

変更内容:
- rules/best-practice-for-interactive-element/index.js: Accordion(s)?を追加
- rules/component-name/index.js: 'Accordion$': 'Accordion$'を追加
- test/best-practice-for-interactive-element.js: Accordion(s)?を追加
- test/component-name.js: Accordionのテストケースを追加
- rules/best-practice-for-interactive-element/README.md: Accordionを追加

後方互換性のため、AccordionPanel(s)?は全て保持。

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@AtsushiM AtsushiM changed the title feat: accordionコンポーネント対応を追加(後方互換性のためAccordionPanelは保持) feat: Accordionコンポーネント対応を追加(後方互換性のためAccordionPanelは保持) Apr 6, 2026
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@yagimushi yagimushi force-pushed the feat/add-accordion-support branch from 52d1b98 to 8f93a17 Compare April 6, 2026 07:12
AtsushiM and others added 2 commits April 6, 2026 16:14
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
後方互換性のためロジックには残すが、ユーザー向けドキュメントには最新のAccordionのみ記載。

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@AtsushiM
Copy link
Copy Markdown
Member Author

AtsushiM commented Apr 6, 2026

📝 実体としては複数のアイテム(Section)を持つため、名称・マークアップを検討したほうが良さそう。

  • Accordions, もしくはAccordionList
  • マークアップはul > li > Section > Heading

など

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.

1 participant