[Bug]: Table header not respecting container-level dark mode
Maintainers usually reply within 2 days
@ernst-dev is already working on this.
Since Jul 22, 2026.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- react, scss, typescript
- Domain
- frontend
Research direction
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.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 248
- Avg merge
- 3d 14h
- Merged PRs (30d)
- 83
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cloudscape-design/components
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
cloudscape-design/components#5184 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
cloudscape-design/components#5152 · 1 comment ·
Maintainers usually reply within 2 days
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 15/100
cloudscape-design/components#5149 · 1 comment ·
Maintainers usually reply within 2 days
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
cloudscape-design/components#5117 · 2 comments ·
Maintainers usually reply within 2 days
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
cloudscape-design/components#5106 · 1 comment ·
Maintainers usually reply within 2 days
All issues in cloudscape-design/components
Similar issues
-
level/task type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
wazuh/wazuh-dashboard-plugins#9508 ·
Maintainers usually reply within 1 day
-
Testnet EOL page links Zonescan mainnetPossibly taken @napelvs claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Azure-Samples/azure-search-openai-demo#3249 ·
Maintainers usually reply within 1 day
-
[Docs] docs/architecture.mermaid leaves out 21 of the 51 src/ directoriesPossibly taken @uyg7x claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
enhancement status:needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
dongdongbh/Mindwtr#1438 ·
Maintainers usually reply within 1 day