Skip to content

fix: [M3-9856] - Fix text layout for Notices with multiple children - #12120

Merged
hkhalil-akamai merged 3 commits into
linode:developfrom
hkhalil-akamai:M3-9856-notices-with-multiple-children
Apr 29, 2025
Merged

fix: [M3-9856] - Fix text layout for Notices with multiple children#12120
hkhalil-akamai merged 3 commits into
linode:developfrom
hkhalil-akamai:M3-9856-notices-with-multiple-children

Conversation

@hkhalil-akamai

Copy link
Copy Markdown
Contributor

Description 📝

Fixes a visual regression following the CDS refactor of the Notice component in #12004.

Changes 🔄

  • Removes display: flex from the children of the Notice components
    • Alternatively, we can wrap the contents in Typography for each affected Notice -- I am open to discussion surrounding this approach
  • Adds an additional stack in DismissibleNotice to replace the flexbox removed above

Preview 📷

Prod This Branch
Screenshot 2025-04-28 at 1 39 00 PM Screenshot 2025-04-28 at 1 29 11 PM

How to test 🧪

  • Verify Notices with multiple children render text and whitespace correctly.
    • An example of an affected Notice can be found when creating an image in a distributed region (see screenshot above)
  • Verify existing Notices continue to render as expected. Several variations are included in the screenshot above.
    • DismissibleBanner
    • Notices with action button
    • Notices with forceImportantIconVerticalCenter enabled
Author Checklists

As an Author, to speed up the review process, I considered 🤔

👀 Doing a self review
❔ Our contribution guidelines
🤏 Splitting feature into small PRs
➕ Adding a changeset
🧪 Providing/improving test coverage
🔐 Removing all sensitive information from the code and PR description
🚩 Using a feature flag to protect the release
👣 Providing comprehensive reproduction steps
📑 Providing or updating our documentation
🕛 Scheduling a pair reviewing session
📱 Providing mobile support
♿ Providing accessibility support


  • I have read and considered all applicable items listed above.

As an Author, before moving this PR from Draft to Open, I confirmed ✅

  • All unit tests are passing
  • TypeScript compilation succeeded without errors
  • Code passes all linting rules

@hkhalil-akamai hkhalil-akamai added Bug Fixes for regressions or bugs Design Tokens Laying the groundwork for Design Tokens labels Apr 28, 2025
@hkhalil-akamai hkhalil-akamai self-assigned this Apr 28, 2025
@hkhalil-akamai
hkhalil-akamai marked this pull request as ready for review April 28, 2025 18:29
@hkhalil-akamai
hkhalil-akamai requested a review from a team as a code owner April 28, 2025 18:29
@hkhalil-akamai
hkhalil-akamai requested review from bnussman-akamai and coliu-akamai and removed request for a team April 28, 2025 18:29
@linode-gh-bot

Copy link
Copy Markdown

Cloud Manager UI test results

🔺 4 failing tests on test run #5 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
4 Failing563 Passing5 Skipped156m 39s

Details

Failing Tests
SpecTest
vpc-landing-page.spec.tsCloud Manager Cypress Tests→VPC landing page » VPC landing page
smoke-community-stackscripts.spec.tsCloud Manager Cypress Tests→Community Stackscripts integration tests » Community Stackscripts integration tests
smoke-community-stackscripts.spec.tsCloud Manager Cypress Tests→Community Stackscripts integration tests » Community Stackscripts integration tests
access-keys-multicluster.spec.tsCloud Manager Cypress Tests→Object Storage Multicluster access keys » Object Storage Multicluster access keys

Troubleshooting

Use this command to re-run the failing tests:

pnpm cy:run -s "cypress/e2e/core/vpc/vpc-landing-page.spec.ts,cypress/e2e/core/stackscripts/smoke-community-stackscripts.spec.ts,cypress/e2e/core/objectStorageMulticluster/access-keys-multicluster.spec.ts"

@coliu-akamai coliu-akamai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks good, thank you! 🚀

unrelated to this PR - is there a ticket to move this notice's icon to the top of the notice?
image

@github-project-automation github-project-automation Bot moved this from Review to Approved in Cloud Manager Apr 29, 2025
@coliu-akamai coliu-akamai added the Approved Multiple approvals and ready to merge! label Apr 29, 2025
@hkhalil-akamai

Copy link
Copy Markdown
Contributor Author

unrelated to this PR - is there a ticket to move this notice's icon to the top of the notice?

It looks like it's intentional as that notice has forceImportantIconVerticalCenter set

@coliu-akamai

Copy link
Copy Markdown
Contributor

ahh I see thanks for checking!

@hkhalil-akamai

Copy link
Copy Markdown
Contributor Author

Test failures appear unrelated.

@hkhalil-akamai
hkhalil-akamai merged commit e9b6da7 into linode:develop Apr 29, 2025
@github-project-automation github-project-automation Bot moved this from Approved to Merged in Cloud Manager Apr 29, 2025
@hkhalil-akamai
hkhalil-akamai deleted the M3-9856-notices-with-multiple-children branch April 29, 2025 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Approved Multiple approvals and ready to merge! Bug Fixes for regressions or bugs Design Tokens Laying the groundwork for Design Tokens

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants