Update the default outline color for OutlinedButton (#138768)

Fix b/311343182

This is to update the default outline for `OutlinedButton`. When the button is focused, the outline color should be primary color.
This commit is contained in:
Qun Cheng
2023-11-22 12:16:37 -08:00
committed by GitHub
parent 843074c5bd
commit c7d4b32fdd
4 changed files with 36 additions and 7 deletions

View File

@@ -136,6 +136,9 @@ ${tokenAvailable("$tokenGroup.outline.color") ? '''
if (states.contains(MaterialState.disabled)) {
return ${border("$tokenGroup.disabled.outline")};
}
if (states.contains(MaterialState.focused)) {
return ${border('$tokenGroup.focus.outline')};
}
return ${border("$tokenGroup.outline")};
});''' : '''
// No default side'''}