Skip to content

feat: revert Alert styles#1889

Merged
nhironaka merged 1 commit into
mainfrom
nhironaka/revert_alert
Apr 29, 2026
Merged

feat: revert Alert styles#1889
nhironaka merged 1 commit into
mainfrom
nhironaka/revert_alert

Conversation

@nhironaka
Copy link
Copy Markdown
Contributor

@nhironaka nhironaka commented Apr 29, 2026

Summary

Reverting to unblock releases

Screenshots (if appropriate):

Testing approaches


Open in Devin Review

Note

Medium Risk
This reverts previously introduced Alert API surface (AlertText, actionsLayout, hideIcon) and significantly changes Alert styling/markup, which can break consumers and visual layouts but does not touch security- or data-critical logic.

Overview
Reverts the recent Alert expansion by removing AlertText and dropping the actionsLayout/hideIcon props from Alert (and from the package exports), simplifying the component API.

Updates Alert rendering and CSS to a new banner-like presentation (adds a top gradient bar for default variant, tweaks icon/close button sizing and positioning, and adjusts spacing/heading/button-group styles), and simplifies Storybook stories/controls accordingly. Also removes the related changeset entries.

Reviewed by Cursor Bugbot for commit 958a3b6. Bugbot is set up for automated code reviews on this repo. Configure here.

@nhironaka nhironaka requested a review from a team as a code owner April 29, 2026 20:55
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 29, 2026

⚠️ No Changeset found

Latest commit: 958a3b6

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@nhironaka nhironaka added the skip changeset To indicate a pull request does not need a changeset label Apr 29, 2026
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 29, 2026

yarn add https://pkg.pr.new/@launchpad-ui/components@1889.tgz
yarn add https://pkg.pr.new/@launchpad-ui/icons@1889.tgz
yarn add https://pkg.pr.new/@launchpad-ui/tokens@1889.tgz

commit: 958a3b6

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 958a3b6. Configure here.

&:has(.heading) {
/* biome-ignore lint/style/noDescendingSpecificity: ignore */
& .icon {
transform: translateY(2px);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hardcoded pixel value in transform instead of design token

Low Severity

The transform: translateY(2px) uses a hardcoded pixel value instead of the --lp-size-2 design token. Other files in this codebase (e.g., Calendar.module.css, Popover.module.css) already use var(--lp-size-2) for the equivalent value. This is not inside a calc() expression alongside a design token, so the exception for fine alignment adjustments does not apply.

Fix in Cursor Fix in Web

Triggered by learned rule: Prefer --lp-size-* design tokens over hardcoded pixel values in component styles

Reviewed by Cursor Bugbot for commit 958a3b6. Configure here.

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

@nhironaka nhironaka merged commit 4b9f7a0 into main Apr 29, 2026
23 of 24 checks passed
@nhironaka nhironaka deleted the nhironaka/revert_alert branch April 29, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip changeset To indicate a pull request does not need a changeset

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants