Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(toast): margin-top on notice variant prevents elements being clicked #6736

Merged
merged 2 commits into from
May 20, 2024

Conversation

nuria1110
Copy link
Contributor

fix #6730

Proposed behaviour

Remove margin-top from "notice" Toast.

Screenshot 2024-05-16 at 11 24 00

Current behaviour

The margin-top on a "notice" Toast prevents elements behind it from being clicked.

Screenshot 2024-05-16 at 11 23 24

Checklist

  • Commits follow our style guide
  • Related issues linked in commit messages if required
  • Screenshots are included in the PR if useful
  • All themes are supported if required
  • Unit tests added or updated if required
  • Playwright automation tests added or updated if required
  • Storybook added or updated if required
  • Translations added or updated (including creating or amending translation keys table in storybook) if required
  • Typescript d.ts file added or updated if required
  • Related docs have been updated if required

QA

  • Tested in provided StackBlitz sandbox/Storybook
  • Add new Playwright test coverage if required
  • Carbon implementation matches Design System/designs
  • UI Tests GitHub check reviewed if required

Additional context

Testing instructions

The margin-top on a "notice" Toast would prevent elements behind it from being clicked.

fix #6730
@@ -227,7 +227,7 @@ describe("Toast component", () => {
expect(screen.getByTestId("toast")).toHaveAttribute("id", "exampleId");
});

it("shoud render any child content passed via the `children` prop", () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

praise: nice pick up

@@ -79,7 +79,19 @@ Default.args = {
};
Default.argTypes = {
variant: {
options: TOAST_COLORS,
Copy link
Contributor

Choose a reason for hiding this comment

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

praise: nice improvement to add the missing props

@DipperTheDan DipperTheDan marked this pull request as ready for review May 16, 2024 14:23
@DipperTheDan DipperTheDan requested review from a team as code owners May 16, 2024 14:23
@nuria1110 nuria1110 merged commit 8974e1f into master May 20, 2024
21 checks passed
@nuria1110 nuria1110 deleted the FE-6576 branch May 20, 2024 08:37
@carbonci
Copy link
Collaborator

🎉 This PR is included in version 135.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Notice variant Toast breaks Pager buttons when it appears
5 participants