Skip to content

Commit

Permalink
Deprecate $govuk-border-width-form-element-error
Browse files Browse the repository at this point in the history
The border width of form elements in their error state (`$govuk-border-width-form-element-error`) is now the same as form elements in their normal state (`$govuk-border-width-form-element`) – both are 2px.

This isn't something we think users need to be able to configure, and we don't really want the complexity of trying to support different border widths for the error state (for example, the box shadow override that we removed in 6bdca06 would need to be conditionally added if the user changed $govuk-border-width-form-element in order to maintain a consistent focus state).

We'll remove this setting entirely in v4.0, the next breaking release.
  • Loading branch information
36degrees committed Jul 17, 2020
1 parent 2bde81d commit e5e2b5b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/govuk/settings/_measurements.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ $govuk-border-width-form-element: 2px !default;
///
/// @type Number
/// @access public
/// @deprecated Use $govuk-border-width-form-element instead. There should be no
/// difference in thickness for inputs in the error state, in order to
/// maintain a distinct focus state.

$govuk-border-width-form-element-error: 2px !default;

Expand Down

0 comments on commit e5e2b5b

Please sign in to comment.