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

Mat-dialog-action: buttons stack improperly on smaller screen #15336

Open
ruchajakhotiya opened this issue Feb 28, 2019 · 1 comment
Open

Mat-dialog-action: buttons stack improperly on smaller screen #15336

ruchajakhotiya opened this issue Feb 28, 2019 · 1 comment
Labels
area: material/dialog needs investigation A member of the team needs to do further investigation to determine the root cause P4 A relatively minor issue that is not relevant to core functions

Comments

@ruchajakhotiya
Copy link

ruchajakhotiya commented Feb 28, 2019

What is the expected behavior?

On smaller screen it should stack with proper alignment

What is the current behavior?

Buttons stack on smaller screen, but alignment is off.

What are the steps to reproduce?

Providing a StackBlitz reproduction is the best way to share your issue. https://akknxgelrke.angular.stackblitz.io/

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

7.3.1

Is there anything else we should know?

This is due to following code in https://github.com/angular/material2/blob/master/src/lib/dialog/dialog.scss

.mat-button + .mat-button,
  .mat-raised-button + .mat-raised-button,
  .mat-button + .mat-raised-button,
  .mat-raised-button + .mat-button {
    margin-left: $mat-dialog-button-margin;

    [dir='rtl'] & {
      margin-left: 0;
      margin-right: $mat-dialog-button-margin;
    }
  }
@josephperrott
Copy link
Member

It looks like the link to the stackblitz is no longer working. Could you provide a new link to the reproduction?

@josephperrott josephperrott self-assigned this Jun 4, 2019
@mmalerba mmalerba added the needs triage This issue needs to be triaged by the team label May 20, 2020
@josephperrott josephperrott added area: material/dialog needs investigation A member of the team needs to do further investigation to determine the root cause P4 A relatively minor issue that is not relevant to core functions and removed needs triage This issue needs to be triaged by the team labels May 28, 2020
@josephperrott josephperrott removed their assignment May 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: material/dialog needs investigation A member of the team needs to do further investigation to determine the root cause P4 A relatively minor issue that is not relevant to core functions
Projects
None yet
Development

No branches or pull requests

3 participants