简体   繁体   中英

How to increase mat-option cell size

I want toget style similiar to one shown in pic when I hover over the mat-option.

在此处输入图像描述

To achieve this I need to move other mat-option element move little low, how to do this, currently I am able to style on hovering mat-option elements.

My question is to how to display a text similiar to shown in pic on hovering over mat-option? You can see in pic it is not styled properly.

This is my css class


.mat-option:hover{
  background-color:#D6CDC9 !important;
  font-family:ffunit;
  color: black;
  font-size:14px;
  font-weight: bold;

}

在此处输入图像描述

I just increased styled length attribute,this worked

.mat-option:hover{
  background-color:white !important;
  font-family:ffunit;
  color: black;
  font-size:14px;
  font-weight: bold;
  height:35%;

}

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