Skip to content

Conversation

@tokimari
Copy link
Contributor

@tokimari tokimari commented Dec 26, 2025

InlineDropDownのDesignDocを追加しました。

Summary

#1740 (comment) についてどうすべきかわからなかったので途中経過でPRしました 🙏

Testing

  • Not run (not requested)

Codex使いながら度々フリーズしてしまって面倒になったので一旦push・・追加修正入れます 🙇


Codex Task

@changeset-bot
Copy link

changeset-bot bot commented Dec 26, 2025

⚠️ No Changeset found

Latest commit: a476f7c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@tokimari tokimari changed the title InlineDropDownのDOにタップターゲットの確保を追記 InlineDropDownのDesignDocを追加 Dec 26, 2025
@github-actions
Copy link
Contributor

Visit the preview URL for this PR (updated for commit a476f7c):

https://ameba-spindle--pr1740-codex-create-design-tjf8d6zm.web.app

(expires Sun, 25 Jan 2026 06:29:38 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: e7521619a2dd5c653490c8246e81ec2a5c8f1435

@reg-suit
Copy link

reg-suit bot commented Dec 26, 2025

✨✨ That's perfect, there is no visual difference! ✨✨

Check out the report here.

Comment on lines +75 to +78
React実装の一例です。`aria-label`によるラベリングを行うシンプルなパターンのみを示します。

```tsx
<InlineDropDown aria-label="期間を選択" name="term" placeholder="期間を選択">
Copy link
Contributor Author

@tokimari tokimari Dec 26, 2025

Choose a reason for hiding this comment

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

q. 現状のStorybookベースに記載されたんですが、InlineDropDownを使う時って視覚的なラベル/何を選ぶべきかわかる明示的なとセットで使う必要があるのでは・・??と思いまして、aria-labelで実装することを推奨するのはよくないのではと思うのですがどうなんでしょうか 💭

Copy link
Member

Choose a reason for hiding this comment

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

実際の利用例ベースでの記載になってるけど、視覚的なラベルを推奨しつつ、実装例の一つにするのはありかもしれない・・!

Comment on lines +17 to +19
ラベルを`aria-label`で設定し、`select`要素のサイズに応じて`visualSize`を選択してください。

余白を含めてタップターゲットが44px以上になるよう配置してください。
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
ラベルを`aria-label`で設定し、`select`要素のサイズに応じて`visualSize`を選択してください
余白を含めてタップターゲットが44px以上になるよう配置してください
余白を含めてタップターゲットが44px以上になるよう配置してください
ラベルを`aria-label`で設定し、`select`要素のサイズに応じて`visualSize`を選択してください

## アクセシビリティ

- [情報や関係性を明確にする](https://a11y-guidelines.ameba.design/1/3/1/)[基本必須]
- [ ] `aria-label`属性を設定し、適切なラベリングを行っている
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comment on lines +128 to +142
### Testing Libraryでのユニットテスト

- 選択肢の選択が正しく動作し、表示テキストが更新されることを確認
- `onChange`ハンドラーが正しく呼び出されることを確認
- `ref`が正しく転送されることを確認
- `disabled`プロパティが正しく適用されることを確認
- プレースホルダーのみ指定された状態から選択肢を切り替えた際に表示が更新されることを確認

### Storybookでのテスト

- Mediumサイズの表示
- Smallサイズの表示
- プレースホルダー状態の表示
- ドロップダウン要素自体が無効化されている状態の表示
- 並び替えなどのインライン利用シナリオでの見た目確認
Copy link
Contributor Author

Choose a reason for hiding this comment

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

方針決まったらテスト書く

@tokimari tokimari requested review from a team, herablog, tatz012 and yasuda-shin and removed request for a team December 26, 2025 06:58
@tokimari tokimari self-assigned this Dec 26, 2025
@tokimari tokimari requested a review from yu-3in December 26, 2025 06:58

InlineDropDownは試験的なコンポーネントであるため、破壊的な変更や削除等おこなわれる可能性があることに注意して利用してください。

## スクリーンショット
Copy link
Contributor

Choose a reason for hiding this comment

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

スクリーンショットは追加します?

Copy link
Member

Choose a reason for hiding this comment

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

なければ無理に追加しなくても大丈夫ではあります

Copy link
Member

Choose a reason for hiding this comment

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

その場合は見出しを削除していただいて大丈夫です!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants