[Bug]: Table header not respecting container-level dark mode
メンテナーはふだん 2 日以内に返信
@ernst-dev がすでに取り組んでいます。
2026年7月22日 から。
評価
- 難易度
- 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 の本文から書いたものです。
説明
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:
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
- I agree to follow this project's Code of Conduct
- I checked the current issues for duplicate problems
- 主要言語
- TypeScript
- スター
- 2.7k
- フォーク
- 248
- 平均マージ
- 3日 14時間
- マージ済み PR(30日)
- 83
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cloudscape-design/components のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
cloudscape-design/components#5184 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
cloudscape-design/components#5152 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
cloudscape-design/components#5149 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
cloudscape-design/components#5117 · コメント 2 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
cloudscape-design/components#5106 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
cloudscape-design/components の issue をすべて見る
似ている issue
-
[Bug]: REST API URL starting with "http" but no scheme (e.g. httpbin.org/get) is not given an http:// prefix対応中かも @ItsDeadlyProgrammer が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
appsmithorg/appsmith#42471 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ehmpathy/rhachet-roles-bhrain#705 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
Status: Triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
mermaid-js/mermaid#8546 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
braintrustdata/braintrust-sdk-javascript#2659 ·
メンテナーはふだん 1 日以内に返信