简体   繁体   中英

How to change MUI Select field perimeter color

在此处输入图像描述

This is an MUI select box. Its color is blue when selected, but black when it isn't. I want the text and boundary to be white (currently blue). How do I do this?

You can try below code with styled component

".Mui-focused": { color: #FFF, },// for name/label

".MuiOutlinedInput-root.Mui-focused.MuiOutlinedInput-notchedOutline": { borderColor: #FFF },

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