bug(mat-divider): divider and inset styling has changed since angular 14
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
13.10
Description
A change in styling with mat divider component. We were wondering if this behaviour is intended or if it a bug..
Reproduction
Steps to reproduce:
- angular 14.02 and material design 14.02 2.
Expected Behavior
We are expecting the following behaviour with [inset]= false and true

Actual Behavior
however we are currently seeing:

Environment
- Browser(s): Chrome
Angular CLI: 14.0.2 Node: 16.13.1 Package Manager: yarn 1.22.17 OS: darwin arm64
Angular: 14.0.2 ... animations, cdk, cli, common, compiler, compiler-cli, core ... forms, language-service, material, platform-browser ... platform-browser-dynamic, router, service-worker
Package Version
@angular-devkit/architect 0.1400.2 @angular-devkit/build-angular 14.0.2 @angular-devkit/core 14.0.2 @angular-devkit/schematics 14.0.2 @angular/flex-layout 13.0.0-beta.38 @schematics/angular 14.0.2 rxjs 7.5.5 typescript 4.7.3
Is it possible that you have a custom override of the styles somewhere? The divider is working correctly for me here: https://stackblitz.com/edit/angular-pqsf6w?file=src%2Fapp%2Fcard-footer-example.html,src%2Fapp%2Fcard-footer-example.css
I suspect that you may have been broken by https://github.com/angular/components/pull/23531 which changed the specificity of one of our selectors.
Thank you @crisbeto, this seems to be the change.
in some cases we have a div wrapped around the mat-divider inside a mat-card.
@bri1990 were you able to work-around the changes in #23531, and does this issue persist for you?
Closing this issue due to no recent activity, if this is still an issue please create a new issue.
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.