BBBCheckbox: no visible keyboard focus, and the label ignores disabled
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 72/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- react, typescript
調査の方向性
src/components/Checkbox/styles.ts から始めてください。ここでは StyledCheckbox が .MuiCheckbox-root に padding: 0 を設定し、Label が cursor を設定しています。次に component.tsx を確認してください。ここでは Label がレンダリングされ、disabled が利用できます。src/components/Button/styles.ts のフォーカスアウトラインを確認し、再利用すべきトークンを見つけてください。また、Tab で移動したときに .Mui-focusVisible がどのように適用されるかを確認してください。キーボードフォーカスで目に見えるアウトラインが表示され、無効なチェックボックスのラベルが not-allowed のカーソルと無効時のテキスト色を使っていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
BBBCheckbox has two state-styling gaps.
- There is no visible keyboard focus.
StyledCheckboxsetspadding: 0on.MuiCheckbox-root, so MUI's focus ripple only tints the inside of the 21px box. On a light background it is a faint grey square, easy to miss. Nothing else marks focus: there's no outline and no.Mui-focusVisiblestyle. With MUI's default 9px padding, the same ripple shows as a 39px halo.BBButton, for comparison, draws a 2px outline on focus (&&:focus). - The label ignores
disabled.Labelalways hascursor: pointerand the default text color. The component doesn't passdisabledto it (component.tsx). Withdisabled, MUI dims the box, but the label still looks and points as if it were clickable.
To Reproduce
- Render
<BBBCheckbox label="Whole image" checked={false} onChange={() => {}} />. - Tab to it. The only focus cue is a faint tint inside the box.
- Render it with
disabledand hover the label. The cursor is a pointer and the label text isn't dimmed.
Expected behavior
- Focus: a clearly visible focus indicator when focused from the keyboard (
:focus-visible/.Mui-focusVisible), consistent withBBButton's focus outline. WCAG 2.4.7 (Focus Visible) requires one. - Disabled: when
disabled, the label showscursor: not-allowed(ordefault) and the disabled text color, like the box.
Actual behavior
- Focus: a faint grey square inside the 21px box.
- Disabled: the label keeps
cursor: pointerand full-contrast text.
Screenshots
Can add if useful. On keyboard focus, the box shows a light grey fill inside its 21px border and nothing outside it.
BBB version, plugin in which the bug happened and SDK version:
- bbb-ui-components-react 0.9.0, and
developat ccef0a330. - Found while switching the BigBlueButton 4.0 client's camera settings ("Whole image" brightness option) from its own MUI checkbox to
BBBCheckbox.
Desktop (please complete the following information):
- OS: Linux
- Browser: Chromium
- Version: Playwright's bundled Chromium
Additional context
A possible fix:
export const StyledCheckbox = styled(MuiCheckbox)`
&.MuiCheckbox-root { padding: 0; }
&.Mui-checked { color: ${colorBrand1}; }
&.Mui-focusVisible { outline: 2px solid <same token as BBButton's focus outline>; outline-offset: 2px; }
`;
export const Label = styled.label<{ $disabled?: boolean }>`
...
cursor: ${({ $disabled }) => ($disabled ? 'not-allowed' : 'pointer')};
${({ $disabled }) => $disabled && `color: <disabled text token>;`}
`;
The component would pass $disabled={props.disabled} to Label.
- 主要言語
- TypeScript
- スター
- 2
- フォーク
- 5
- 平均マージ
- 1日 21時間
- マージ済み PR(30日)
- 15
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
bigbluebutton/bbb-ui-components-react のほかの issue
-
BBButton: subtle variant with neutral color has an opaque white background, so it renders white on white in dark mode再び着手できるかも @nisatsama が 11 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
bigbluebutton/bbb-ui-components-react#100 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
bigbluebutton/bbb-ui-components-react#107 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 半日 初心者へのやさしさ 55/100
bigbluebutton/bbb-ui-components-react#106 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 半日 初心者へのやさしさ 45/100
bigbluebutton/bbb-ui-components-react#105 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
bigbluebutton/bbb-ui-components-react#87 ·
メンテナーはふだん 1 日以内に返信
bigbluebutton/bbb-ui-components-react の issue をすべて見る
似ている issue
-
bug engine
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
frostney/GocciaScript#1746 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
agilepathway/label-checker#739 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
CopilotKit/OpenBot#800 ·
メンテナーはふだん 1 日以内に返信
-
Endpoint links in the tag operations list are below the 24px target size対応中かも @AdzerKI が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
ehmpathy/rhachet-roles-bhuild#471 ·
メンテナーはふだん 1 日以内に返信