Skip to content

SnackBar BorderThickness and BorderBrush not working #3883

Closed

Description

@HedpE-

Bug explanation

When setting BorderThickness and BorderBrush on a SnackBar, these settings aren't reflected on the template as the border doesn't have these properties template bound.

Suggested solution is to implement the following lines to the SnackBar Style, in the Border object:

BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"

Version

5.2.1

Activity

  1. corvinsz commented on Jul 16, 2025

    @corvinsz
    Member

    @HedpE- it indeed seems weird that the SnackBar exposes the 2 properties but doesn't actually use them in it's template.
    In my opinion the change you propose is fine. You are welcome to create a PR for this.

  2. added
    Waiting on feedbackAdditional information is needed. Stale items with this label may be closed.
    and removed
    evaluation requiredItems is pending review or evaluation by the team
    on Jul 16, 2025
  3. HedpE- commented on Jul 19, 2025

    @HedpE-
    ContributorAuthor

    Sorry for the mess, I'm not very used to GitHub and this was my first PR ever, now everything is fine and clean.

  4. github-actions commented on Aug 19, 2025

    @github-actions
    Contributor

    This issue is marked stale because it has been open 30 days with no activity. Remove stale label or update the issue, otherwise it will be closed in 14 days.

  5. added
    StaleIssues and PRs that have not had activity for a while are marked with this label.
    on Aug 19, 2025
  6. github-actions commented on Sep 3, 2025

    @github-actions
    Contributor

    This issue was closed because it has been stalled for 14 days with no activity.

  7. reopened this on Sep 3, 2025
  8. removed
    StaleIssues and PRs that have not had activity for a while are marked with this label.
    on Sep 3, 2025
  9. added this to the 5.3.0 milestone on Sep 3, 2025
  10. removed
    Waiting on feedbackAdditional information is needed. Stale items with this label may be closed.
    on Sep 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions