Skip to content

Conversation

@just-boris
Copy link
Member

@just-boris just-boris commented Nov 5, 2025

Description

Follow up to be merged after another change is released: cloudscape-design/component-toolkit#172

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

How has this been tested?

The PR build will pass after the toolkit change is released to NPM. I will restart the build, but the code itself is ready for the review

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.

@just-boris just-boris marked this pull request as ready for review November 6, 2025 13:00
@just-boris just-boris requested a review from a team as a code owner November 6, 2025 13:00
@just-boris just-boris requested review from YueyingLu and removed request for a team November 6, 2025 13:00
of the most recent getModalRoot call as an argument.",
"inlineType": {
"name": "(container: HTMLElement) => void",
"name": "(container: HTMLElement | null) => void",
Copy link
Member

Choose a reason for hiding this comment

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

is this not a breaking change?

Copy link
Member Author

Choose a reason for hiding this comment

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

It is. I already confirmed it is safe with a dry-run to live linked in the original component-toolkit CR: 7586509761

element.setAttribute('id', 'async-modal-root');
document.body.appendChild(element);
if (!abortSignal.aborted) {
document.body.appendChild(element);
Copy link
Member

Choose a reason for hiding this comment

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

Can we instead avoid calling this function when it is aborted?

Copy link
Member Author

@just-boris just-boris Nov 6, 2025

Choose a reason for hiding this comment

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

How do you imagine that? This function is async it is called on the start, and there is no way to abort it after it has been already called

Copy link
Member

Choose a reason for hiding this comment

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

got it now, thanks

element.setAttribute('id', 'async-modal-root');
document.body.appendChild(element);
if (!abortSignal.aborted) {
document.body.appendChild(element);
Copy link
Member

Choose a reason for hiding this comment

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

got it now, thanks

@codecov
Copy link

codecov bot commented Nov 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.25%. Comparing base (ed70c95) to head (4c60f2a).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4016   +/-   ##
=======================================
  Coverage   97.25%   97.25%           
=======================================
  Files         859      859           
  Lines       25396    25396           
  Branches     9048     9049    +1     
=======================================
  Hits        24699    24699           
+ Misses        691      650   -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.

@just-boris just-boris added this pull request to the merge queue Nov 7, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 7, 2025
@just-boris just-boris added this pull request to the merge queue Nov 7, 2025
Merged via the queue into main with commit 8ac1207 Nov 7, 2025
55 of 56 checks passed
@just-boris just-boris deleted the fix-modal-root branch November 7, 2025 12:25
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