Skip to content

Conversation

@SpyZzey
Copy link
Member

@SpyZzey SpyZzey commented Nov 24, 2025

Description

Currently, the hierarchical padding is applied to the same div as the border and the padding (border-width padding) when selected/unselected. This PR moves this "business"-padding (e.g. hierarchical padding, general spacing padding) to the inner option-content div, which was previously only used for testing.

This is needed so we can extend the selectable-item components to allow for custom styling in the content by removing this "business"-padding.

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

How has this been tested?

  • Manual testing.
  • Ran through pipeline for screenshot test validation.
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
Copy link

codecov bot commented Nov 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.12%. Comparing base (5a7ae01) to head (fecea21).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4070   +/-   ##
=======================================
  Coverage   97.12%   97.12%           
=======================================
  Files         864      864           
  Lines       25325    25330    +5     
  Branches     9137     9140    +3     
=======================================
+ Hits        24597    24602    +5     
+ Misses        722      681   -41     
- Partials        6       47   +41     

☔ View full report in Codecov by Sentry.
📢 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.

@SpyZzey SpyZzey marked this pull request as ready for review November 25, 2025 16:08
@SpyZzey SpyZzey requested a review from a team as a code owner November 25, 2025 16:08
@SpyZzey SpyZzey requested review from taheramr and removed request for a team November 25, 2025 16:08
@SpyZzey SpyZzey removed the request for review from taheramr November 26, 2025 14:18
@SpyZzey SpyZzey marked this pull request as draft November 26, 2025 14:18
@SpyZzey SpyZzey force-pushed the refactor/apply-padding-to-option-content branch from c42d2ea to 47d35a0 Compare November 27, 2025 09:19
highlighted: [false, true],
disabled: [false, true],
children: [simpleOption],
disableContentStyling: [true],
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't disableContentStyling be [false] (for each item)?

@SpyZzey SpyZzey marked this pull request as draft December 4, 2025 10:38
export default function InputPermutations() {
return (
<>
<h1>Selectable item permutations</h1>
Copy link
Member

Choose a reason for hiding this comment

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

Minor: suggest to change the title to reflect the difference between this page and the one that it was copied from.

<>
<h1>Selectable item permutations</h1>
<ScreenshotArea>
<SpaceBetween size="xs">
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this SpaceBetween does anything, since it conatins one single element.

}
&.highlighted {
color: awsui.$color-text-dropdown-item-highlighted;
> .selectable-item-content {
Copy link
Member

Choose a reason for hiding this comment

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

Nitpick: these two nested rulesets could be merged into one

&.highlighted > .selectable-item-content { ... }

@SpyZzey SpyZzey added this pull request to the merge queue Dec 4, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 4, 2025
@SpyZzey SpyZzey added this pull request to the merge queue Dec 4, 2025
Merged via the queue into main with commit 83500f3 Dec 4, 2025
50 checks passed
@SpyZzey SpyZzey deleted the refactor/apply-padding-to-option-content branch December 4, 2025 18:13
at-susie pushed a commit that referenced this pull request Dec 5, 2025
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.

3 participants