Skip to content

Commit

Permalink
Update checkbox & radio focused outline
Browse files Browse the repository at this point in the history
  • Loading branch information
Pante committed Nov 13, 2024
1 parent 550eaf0 commit 5a80ddc
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion forui/lib/src/widgets/checkbox.dart
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,10 @@ class FCheckboxStyle with Diagnosticable {
FCheckboxStyle.inherit({required FColorScheme colorScheme, required FStyle style})
: this(
labelLayoutStyle: FLabelStyles.inherit(style: style).horizontalStyle.layout,
focusedOutlineStyle: style.focusedOutlineStyle,
focusedOutlineStyle: FFocusedOutlineStyle(
color: style.focusedOutlineStyle.color,
borderRadius: BorderRadius.circular(4),
),
enabledStyle: FCheckboxStateStyle(
labelTextStyle: style.enabledFormFieldStyle.labelTextStyle,
descriptionTextStyle: style.enabledFormFieldStyle.descriptionTextStyle,
Expand Down
5 changes: 4 additions & 1 deletion forui/lib/src/widgets/radio.dart
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,10 @@ class FRadioStyle with Diagnosticable {
FRadioStyle.inherit({required FColorScheme colorScheme, required FStyle style})
: this(
labelLayoutStyle: FLabelStyles.inherit(style: style).horizontalStyle.layout,
focusedOutlineStyle: style.focusedOutlineStyle,
focusedOutlineStyle: FFocusedOutlineStyle(
color: colorScheme.primary,
borderRadius: BorderRadius.circular(100),
),
enabledStyle: FRadioStateStyle(
labelTextStyle: style.enabledFormFieldStyle.labelTextStyle,
descriptionTextStyle: style.enabledFormFieldStyle.descriptionTextStyle,
Expand Down
Binary file modified forui/test/golden/check-box/zinc-dark/focused.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/check-box/zinc-light/focused.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/radio/zinc-dark/focused.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/radio/zinc-light/focused.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5a80ddc

Please sign in to comment.