Skip to content

Commit

Permalink
Update M3 IconButton unselected focused opacity (#117321)
Browse files Browse the repository at this point in the history
* Bottom App Bar M3 background color fix

* update test

* test update

* remove whitespace

* Update IconButton unselected focused opacity

* Delete generated_plugins.cmake
  • Loading branch information
esouthren committed Dec 28, 2022
1 parent 9afaf6b commit 0e83ada
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev/tools/gen_defaults/data/icon_button.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"md.comp.icon-button.state-layer.size": 40.0,
"md.comp.icon-button.unselected.focus.icon.color": "onSurfaceVariant",
"md.comp.icon-button.unselected.focus.state-layer.color": "onSurfaceVariant",
"md.comp.icon-button.unselected.focus.state-layer.opacity": "md.sys.state.hover.state-layer-opacity",
"md.comp.icon-button.unselected.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity",
"md.comp.icon-button.unselected.hover.icon.color": "onSurfaceVariant",
"md.comp.icon-button.unselected.hover.state-layer.color": "onSurfaceVariant",
"md.comp.icon-button.unselected.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity",
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter/lib/src/material/icon_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,7 @@ class _IconButtonDefaultsM3 extends ButtonStyle {
return _colors.onSurfaceVariant.withOpacity(0.08);
}
if (states.contains(MaterialState.focused)) {
return _colors.onSurfaceVariant.withOpacity(0.08);
return _colors.onSurfaceVariant.withOpacity(0.12);
}
if (states.contains(MaterialState.pressed)) {
return _colors.onSurfaceVariant.withOpacity(0.12);
Expand Down

0 comments on commit 0e83ada

Please sign in to comment.