angular / angular/components

Wrong snack-bar width

Open
#15,998 1 comment 1 reaction 0 assignees View on GitHub
area: material/snack-bar material spec P4
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
91

Description

#### What is the expected behavior?

Valid snack-bar width.

#### What is the current behavior?

Snack-bar's **width** depends from window's **height** :) (this is because snack-bar uses `Breakpoints.Handset`, seems `Breakpoints.XSmall` is more suitable in this case?)

![2019-05-10_18-16-02](https://user-images.githubusercontent.com/1329824/57533894-daaea500-734f-11e9-8485-8e5fa641c667.gif)

#### What are the steps to reproduce?

1. Go to https://material.angular.io/components/snack-bar/examples
2. Set windows size like on gif
3. Press on Pizza

#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Desktop, Chrome/Firefox, Material: 7.3.7

Contributor guide

Open the contributing guide

Research direction

Start at the snack-bar examples page and trace how the snack-bar chooses its responsive breakpoint, comparing the reported Breakpoints.Handset and Breakpoints.XSmall behavior. Reproduce the desktop sizing case from the issue, then verify that the snack-bar width no longer depends on the window height.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.