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

bug(MatError): Cannot put spacing around Mat Error - want to put bottom margin - can only see left and right 16px padding #28930

Open
1 task
dreamstar-enterprises opened this issue Apr 22, 2024 · 1 comment
Labels
area: material/form-field needs: clarification The issue does not contain enough information for the team to determine if it is a real bug

Comments

@dreamstar-enterprises
Copy link

dreamstar-enterprises commented Apr 22, 2024

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

I can't edit spacing around mat-error.

I've tried

.mat-mdc-form-field-error-wrapper {
  margin: 0 16px 10px 16px !important;
}

But it doesn't work. If I have 3 errors shown at the same time, they overflow the main mat-form-field wrapper, and don't push the elements below them down

Reproduction

StackBlitz link:
Steps to reproduce:
1.
2.

Expected Behavior

See above

Actual Behavior

See above

Environment

  • Angular:
  • CDK/Material:
  • Browser(s):
  • Operating System (e.g. Windows, macOS, Ubuntu):
@dreamstar-enterprises dreamstar-enterprises added the needs triage This issue needs to be triaged by the team label Apr 22, 2024
@amysorto
Copy link
Contributor

amysorto commented May 6, 2024

Can you provide a stackblitz with your example?

@amysorto amysorto added needs: clarification The issue does not contain enough information for the team to determine if it is a real bug area: material/form-field and removed needs triage This issue needs to be triaged by the team labels May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: material/form-field needs: clarification The issue does not contain enough information for the team to determine if it is a real bug
Projects
None yet
Development

No branches or pull requests

2 participants