components icon indicating copy to clipboard operation
components copied to clipboard

bug(mat-divider): divider and inset styling has changed since angular 14

Open bri1990 opened this issue 4 years ago • 5 comments

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:

  1. angular 14.02 and material design 14.02 2.

Expected Behavior

We are expecting the following behaviour with [inset]= false and true Screenshot 2022-06-18 at 19 06 11

Actual Behavior

however we are currently seeing: Screenshot 2022-06-18 at 19 09 35

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

bri1990 avatar Jun 18 '22 17:06 bri1990

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.

crisbeto avatar Jun 19 '22 06:06 crisbeto

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 avatar Jun 19 '22 12:06 bri1990

@bri1990 were you able to work-around the changes in #23531, and does this issue persist for you?

zarend avatar Jun 22 '22 21:06 zarend

Closing this issue due to no recent activity, if this is still an issue please create a new issue.

amysorto avatar Sep 14 '23 21:09 amysorto

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.