Allow Label to set button component without onClick
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 68/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- react, typescript
- 領域
- frontend
調査の方向性
Label コンポーネントと既存のテストから始め、onClick が指定されたときにレンダリングされる要素がどのように変わるかを追跡します。onClick なしでボタンを要求するためのサポートされた方法を定義し、既存の使用方法を変更せずに、Label が期待されるフォーカス動作を持つネイティブボタンをレンダリングすることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Describe the enhancement or change
Currently, in order for a clickable Label to render with the button element in the DOM is to pass an onClick handler to it. There may be use cases where an onClick isn't desired - one example being the new Canvas pattern in Chatbot where a clickable Label opens a Popover. In this case the Popover is passed the Label as a child (rather than using triggerRefs and the Label's onClick to dictate the Popover open state).
Allowing Label to set a button element could help in those sorts of scenarios, instead of needing to pass a triggerRef, onClick to Label, and onHidden to Popover (which may result in some funky focus behavior).
Is this request originating from a Red Hat product team? If so, which ones and is there any sort of deadline for this enhancement?
Any other information?
Not blocking as there is a workaround of setting role and tabindex on a normal Label, but it lacks some focus styles and it would be better for us to support this internally with native elements.
Jira Issue: PF-4637
- 主要言語
- TypeScript
- スター
- 859
- フォーク
- 395
- 平均マージ
- 3日 13時間
- マージ済み PR(30日)
- 15
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
patternfly/patternfly-react のほかの issue
-
fix(table): CollapseColumn uses wrong caret icon for expandable row toggle対応中かも @redhat-chai-bot が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
patternfly/patternfly-react#12727 ·
メンテナーはふだん 1 日以内に返信
-
Bug - PageSidebar - collapsed sidebar is aria-hidden but its navigation links stay in the tab order対応中かも @Sophran-fbj が 4 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
patternfly/patternfly-react#12693 ·
メンテナーはふだん 1 日以内に返信
-
Bug - Label - Doesn't allow ref forwarding対応中かも @tarunvashishth が 28 日前に担当しました。 オープンPF Team Stale
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
patternfly/patternfly-react#12651 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Bug - [Menu] - Flyout stays open when hovering a disabled item対応中かも @fallmo が 64 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
patternfly/patternfly-react#12637 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
PF Team Stale
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
patternfly/patternfly-react#12617 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
patternfly/patternfly-react の issue をすべて見る
似ている issue
-
[Provider] antigravity-acp catalog omits gemini-4-hydrogen and gemini-4-neon that agy acp offersオープンcatalog provider provider-compatibility
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
lidge-jun/opencodex#9037 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
slavakurilyak/awesome-ai-agents#1005 ·
-
kind/bug triage/unresolved
難易度 2/5 1〜3時間 初心者へのやさしさ 60/100
メンテナーはふだん 1 日以内に返信
-
effort:S P3 refactor
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
nightscout/nocturne#3735 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
wpilibsuite/systemcore-blocks-interface#641 ·
メンテナーはふだん 2 日以内に返信