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

[Bug]: Table header not respecting container-level dark mode

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

メンテナーはふだん 2 日以内に返信

@ernst-dev がすでに取り組んでいます。

2026年7月22日 から。

  • #132 @TrevorBurnham による — マージされずにクローズ
  • #4765 @ernst-dev による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
react, scss, typescript
領域
frontend

調査の方向性

Use the reproduction in pages/table/dark-mode-container.page.tsx and run npm start:dev to inspect the table inside a dark-mode container on a light-mode page. Trace the table header styles involved in that case; done means the header background renders correctly there while the table still looks correct when the whole page is in dark mode. An open pull request is already linked to this issue.

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

説明

enhancement
Browser

No response

Package version

v3.0.1156

React version

No response

Description

I have a table that renders inside of a div with the dark mode class. Previously, that table rendered with the correct dark mode styles. However, the background color in the table header recently became incorrect:

Image

To be clear, the table looks fine if the whole page is in dark mode. The styles are only broken if the page is in light mode but the container around the table is in dark mode.

Source code

No response

Reproduction

Add this demo to pages/table/dark-mode-container.page.tsx and run npm start:dev:

// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import React from 'react';

import Header from '~components/header';
import Link from '~components/link';
import Table, { TableProps } from '~components/table';

import ScreenshotArea from '../utils/screenshot-area';
import { ARIA_LABELS, createSimpleItems, simpleColumns } from './shared-configs';

const items = createSimpleItems(5);

const columnDefinitions: TableProps.ColumnDefinition<(typeof items)[number]>[] = [
  {
    id: 'text',
    cell: item => <Link>{item.text}</Link>,
    header: 'Text',
  },
  {
    id: 'number',
    cell: item => item.number,
    header: 'Number',
  },
];

export default function DarkModeContainerPage() {
  return (
    <>
      <h1>Table in dark mode container</h1>
      <ScreenshotArea disableAnimations={true}>
        <div className="awsui-dark-mode" style={{ padding: '20px', background: '#0f1b2a' }}>
          <Table
            header={<Header>Table in dark mode</Header>}
            columnDefinitions={columnDefinitions}
            items={items}
            ariaLabels={ARIA_LABELS}
          />
        </div>
      </ScreenshotArea>
    </>
  );
}
Code of Conduct
主要言語
TypeScript
スター
2.7k
フォーク
248
平均マージ
3日 14時間
マージ済み PR(30日)
83

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

cloudscape-design/components のほかの issue

cloudscape-design/components の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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