Hi @joostmulder,
It’s a tricky one because there are a lot of different states that all have their own CSS rules.
If you want to change the outline colour of an unfocused field, you should be able to do something like this:
/* Unfocused field outline */
#cf7md-form .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__path,
#cf7md-form .mdc-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__path {
stroke: green;
}
#cf7md-form .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__idle,
#cf7md-form .mdc-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__idle {
border-color: green;
}
And for focused fields:
/* Focused fields outline */
#cf7md-form .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__idle,
#cf7md-form .mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline__idle {
border-color: blue;
}
You can add this CSS under Appearance > Customiser > Material Design Forms > Custom CSS. Obviously you can change the colours from blue
and green
to whatever you like.
Thanks,
Angus