Skip to content

feat: Update one-theme compact mode values - #4953

Open
cansuaa wants to merge 29 commits into
mainfrom
cansua/density
Open

cansuaa wants to merge 29 commits into
mainfrom
cansua/density

Conversation

@cansuaa

@cansuaa cansuaa commented Aug 31, 2026 •

Copy link
Copy Markdown
Member

Description

Update One Theme compact mode values to be more compact. A collaboration between console squad and visual design :)

Related links, issue #, if available: n/a

How has this been tested?

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@codecov

codecov Bot commented Aug 31, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.72%. Comparing base (800f8fc) to head (0a59fe6).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4953   +/-   ##
=======================================
  Coverage   97.72%   97.72%           
=======================================
  Files         995      995           
  Lines       32129    32131    +2     
  Branches    11850    11852    +2     
=======================================
+ Hits        31399    31401    +2     
+ Misses        723      684   -39     
- Partials        7       46   +39     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment on lines +20 to +22
spaceTableCellVertical: '2px',
spaceExpandToggleFocusOutlineGutter: '1px',
spaceButtonInlineLinkFocusOutlineGutter: '1px',

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spaceTableHeaderFocusOutlineGutter is not included here because it isn't needed in the compact table case since there is still plenty of space between the header and table header columns and it also makes focus highlight not show up at all when set to 0px


export type ColorPaletteDictionary = Partial<TokenCategory<ColorPaletteTokenName, GlobalEntry>>;
export type TypographyDictionary = Partial<TokenCategory<TypographyTokenName, GlobalEntry>>;
export type DensityTypographyDictionary = Partial<TokenCategory<TypographyTokenName, DensityModeEntry>>;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created a new one, because typography should become part of density only in one-theme and core but not classic and visual refresh

Comment thread package.json Outdated
"start:react18": "npm-run-all --parallel start:watch start:react18:dev",
"start:react18:dev": "cross-env NODE_ENV=development REACT_VERSION=18 webpack serve --config pages/webpack.config.cjs",
"postinstall": "prepare-package-lock",
"postinstall": "node ./scripts/install-peer-dependency.js theming-core:dev-v3-cansua",

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This command and the script is added so that this PR uses dev-v3-cansua branch in theming-core package because the changes there are needed in order to be able to run actions cloudscape-design/theming-core#216

I don't think the script needs to be committed, once the theming-core PR is merged, the command and script can be reverted

#{$cell-vertical-padding} + (#{awsui.$border-item-width} - #{awsui.$border-divider-list-width})
);
$cell-horizontal-padding: awsui.$space-scaled-l;
$cell-horizontal-padding: calc(#{awsui.$space-s} + #{awsui.$space-scaled-xs});

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated to match how header cell padding is implemented (2 separate paddings on separate elements)

@gethinwebster
gethinwebster marked this pull request as ready for review October 16, 2026 11:20
@gethinwebster
gethinwebster requested a review from a team as a code owner October 16, 2026 11:20
@gethinwebster
gethinwebster requested review from ywyyu17 and removed request for a team October 16, 2026 11:20

This branch was successfully deployed

3 active (outdated) deployments
dev-pages-react18 — 3bb57baa Deployed Oct 14, 2026 by gethinwebster via deploy (React 18) / deploy #2783
dev-pages-react16 — 3bb57baa Deployed Oct 14, 2026 by gethinwebster via deploy (React 16) / deploy #2783
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants