Skip to content

The Error snackbar from Account settings is not closeable #766

@Andrei199991

Description

@Andrei199991

This is:

  • Bug

Specifications

  • OS: Windows 10
  • Browser: Chrome

Expected Behavior

When clicking the Close button, the Snackbar element should vanish. Also, the Close message is currently black on a dark gray background (see the screenshot below), which makes it nearly invisible and is thus very difficult to use: its text color should be more user friendly. 🙂

Actual Behavior

Clicking on the Close button does nothing.

Steps to Reproduce the Problem

  1. Run the admin app (this may be the examples/apps/admin app) and navigate to the Account's settings which you may also find at URL route /admin/account.
  2. Edit packages/app-security/src/admin/views/Account.tsx's onSubmit handler by making an error appear. Your code should transform from:
    const { error } = response.security.updateCurrentUser;
    into, for example:
    const { error } = { message: "This is an arbitrary error" }
  3. Click on Update Account. You should see the snackbar show up exactly like in the screenshot below.

Additional info

You may see a list of Tokens in my screenshot. That's a new feature which I am currently working on - don't worry if you don't see it in the app yet. 🍻

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issueAn issue that is not too complicated to resolve, and it's an ideal issue for new contributors.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions