Skip to content

Commit

Permalink
fix: [MDS-844] Adjust Input helper text padding (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kypsis committed Dec 1, 2023
1 parent e978fe7 commit b453a71
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
6 changes: 1 addition & 5 deletions lib/src/theme/text_area/text_area_theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ class MoonTextAreaTheme extends ThemeExtension<MoonTextAreaTheme> with Diagnosti
borderRadius: tokens.borders.interactiveSm,
transitionDuration: tokens.transitions.defaultTransitionDuration,
transitionCurve: tokens.transitions.defaultTransitionCurve,
helperPadding: EdgeInsets.only(
left: tokens.sizes.x3s,
top: tokens.sizes.x4s,
right: tokens.sizes.x3s,
),
helperPadding: EdgeInsets.only(top: tokens.sizes.x4s),
textPadding: EdgeInsets.all(tokens.sizes.x2s),
textStyle: tokens.typography.body.text16,
helperTextStyle: tokens.typography.body.text12,
Expand Down
6 changes: 1 addition & 5 deletions lib/src/theme/text_input/text_input_theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@ class MoonTextInputTheme extends ThemeExtension<MoonTextInputTheme> with Diagnos
// https://github.com/material-components/material-components-android/blob/master/lib/java/com/google/android/material/textfield/TextInputLayout.java
transitionDuration: const Duration(milliseconds: 167),
transitionCurve: Curves.fastOutSlowIn,
helperPadding: EdgeInsets.only(
left: tokens.sizes.x3s,
top: tokens.sizes.x4s,
right: tokens.sizes.x3s,
),
helperPadding: EdgeInsets.only(top: tokens.sizes.x4s),
helperTextStyle: tokens.typography.body.text12,
),
sizes = sizes ?? MoonTextInputSizes(tokens: tokens);
Expand Down
6 changes: 1 addition & 5 deletions lib/src/theme/text_input_group/text_input_group_theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@ class MoonTextInputGroupTheme extends ThemeExtension<MoonTextInputGroupTheme> wi
borderRadius: tokens.borders.interactiveSm,
transitionDuration: tokens.transitions.defaultTransitionDuration,
transitionCurve: tokens.transitions.defaultTransitionCurve,
helperPadding: EdgeInsets.only(
left: tokens.sizes.x3s,
top: tokens.sizes.x4s,
right: tokens.sizes.x3s,
),
helperPadding: EdgeInsets.only(top: tokens.sizes.x4s),
textPadding: EdgeInsets.all(tokens.sizes.x2s),
textStyle: tokens.typography.body.text16,
helperTextStyle: tokens.typography.body.text12,
Expand Down

0 comments on commit b453a71

Please sign in to comment.