Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Alternate row color in rc-table only works on hover!

オープン
#997 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
react, typescript
領域
frontend

調査の方向性

まず、報告されているセレクター .rc-table table tr:nth-child(even) を使って rc-table コンポーネントの交互行スタイルの問題を再現し、通常時と hover 時の状態を比較します。レンダリングされたテーブルのスタイルを追跡して偶数行の背景が上書きされる理由を特定し、その後、hover していない状態でも交互の背景が表示され続けることを確認します。

索引モデルが issue の本文から書いたものです。

説明

I'm using the rc-table component to display a table with alternate row colors. However, the background color of even rows only takes effect when I hover over them with the mouse. I've tried adding the CSS code table tr:nth-child(even) { background: #CCE8E8; }, but it doesn't seem to be working as expected.、
Can someone help me figure out why the even rows' background color only works on hover? Thank you!
CSS:
.rc-table table tr:nth-child(even){background:#CCE8E8!important;}

主要言語
TypeScript
スター
1.4k
フォーク
618
平均マージ
10時間 19分
マージ済み PR(30日)
2

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

react-component/table のほかの issue

react-component/table の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。