简体   繁体   中英

How to make CSS change in Angular Material Stepper?

I was working with Mat-Stepper on a project. This is the stackblitz link of the project. I wanted to make two changes here:-

  1. How can I remove the horizontal line between the steps and replace it with something else, like an arrow or something? 我想用别的东西代替这条线
  2. I want to highlight the label by adding shadow around it. Is that possible? 在此处输入图像描述

Thanks in advance,for the help.

Add this to your styles and change background to any you like

.mat-stepper-horizontal-line{border-color: transparent; position: relative;}
.mat-stepper-horizontal-line:after{content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; background: red; margin: -10px 0 0 -10px;}

Boxshadow

.mat-horizontal-stepper-header-container{box-shadow: inset 0 0 0 1px red;}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM