Skip to content

bug(MatSnackBar): Long message leads to action button getting detached from snackbar #21681

Closed

Description

@rhofour

Reproduction

Screenshot: https://i.imgur.com/YZnHIiR.jpg

Steps to reproduce:

  1. https://material.angular.io/components/snack-bar/overview
  2. Type a long message into the message field
  3. Hit show snack-bar

Expected Behavior

What behavior were you expecting to see?
Message would overflow or wrap, but with the button still as part of the snack bar.

Actual Behavior

What behavior did you actually see?
The message is cut off, but then there's significant blank space before the button shows.
It's easy to miss the button here since it's separate from the background.

Environment

  • Angular: 11
  • CDK/Material: 11.1.0
  • Browser(s): Chrome 87
  • Operating System (e.g. Windows, macOS, Ubuntu): Fedora

Activity

  1. added
    needs triage
    on Jan 23, 2021
  2. added
    P4
    and removed
    needs triage
    on Jan 25, 2021
  3. self-assigned this
    on Dec 27, 2021
  4. added a commit that references this issue on Dec 27, 2021
    1965d65
  5. added 2 commits that reference this issue on Jan 13, 2022
    0bc45ca
    99e7782
  6. angular-automatic-lock-bot commented on Feb 13, 2022

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  7. locked and limited conversation to collaborators on Feb 13, 2022
  8. added a commit that references this issue on Apr 3, 2022
    3fe7b95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P4area: material/snack-bar

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions