Sha256: 6a8712846c27658919bb9a2921ca860c861a37ad6b45757b216e09175122b513

Contents?: true

Size: 1.37 KB

Versions: 151

Compression:

Stored size: 1.37 KB

Contents

@import "../error-message/index";
@import "../hint/index";
@import "../label/index";

@include govuk-exports("govuk/component/textarea") {
  .govuk-textarea {
    @include govuk-font($size: 19, $line-height: 1.25);

    box-sizing: border-box; // should this be global?
    display: block;
    width: 100%;
    min-height: 40px;
    @include govuk-responsive-margin(6, "bottom");
    padding: govuk-spacing(1);

    resize: vertical;

    border: $govuk-border-width-form-element solid $govuk-input-border-colour;
    border-radius: 0;

    -webkit-appearance: none;

    &:focus {
      outline: $govuk-focus-width solid $govuk-focus-colour;
      // Ensure outline appears outside of the element
      outline-offset: 0;
      // Double the border by adding its width again. Use `box-shadow` to do
      // this instead of changing `border-width` (which changes element size) and
      // since `outline` is already used for the yellow focus state.
      box-shadow: inset 0 0 0 $govuk-border-width-form-element;

      @include govuk-if-ie8 {
        // IE8 doesn't support `box-shadow` so double the border with
        // `border-width`.
        border-width: $govuk-border-width-form-element * 2;
      }
    }
  }

  .govuk-textarea--error {
    border: $govuk-border-width-form-element-error solid $govuk-error-colour;

    &:focus {
      border-color: $govuk-input-border-colour;
    }
  }
}

Version data entries

151 entries across 148 versions & 4 rubygems

Version Path
govuk_publishing_components-23.15.0 node_modules/govuk-frontend/govuk/components/textarea/_index.scss
govuk_publishing_components-23.14.0 node_modules/govuk-frontend/govuk/components/textarea/_index.scss
govuk_publishing_components-23.13.1 node_modules/govuk-frontend/govuk/components/textarea/_index.scss
govuk_publishing_components-23.13.0 node_modules/govuk-frontend/govuk/components/textarea/_index.scss
govuk_publishing_components-23.12.3 node_modules/govuk-frontend/govuk/components/textarea/_index.scss
govuk_publishing_components-23.12.2 node_modules/govuk-frontend/govuk/components/textarea/_index.scss
govuk_publishing_components-23.12.1 node_modules/govuk-frontend/govuk/components/textarea/_index.scss
govuk_publishing_components-23.12.0 node_modules/govuk-frontend/govuk/components/textarea/_index.scss
govuk_publishing_components-23.11.1 node_modules/govuk-frontend/govuk/components/textarea/_index.scss
govuk_publishing_components-23.11.0 node_modules/govuk-frontend/govuk/components/textarea/_index.scss
dxw_govuk_frontend_rails-3.10.2 vendor/assets/stylesheets/components/textarea/_index.scss
dxw_govuk_frontend_rails-3.9.1 vendor/assets/stylesheets/components/textarea/_index.scss
govuk_publishing_components-23.10.2 node_modules/govuk-frontend/govuk/components/textarea/_index.scss
govuk_publishing_components-23.10.1 node_modules/govuk-frontend/govuk/components/textarea/_index.scss
govuk_publishing_components-23.10.0 node_modules/govuk-frontend/govuk/components/textarea/_index.scss
govuk_publishing_components-23.9.2 node_modules/govuk-frontend/govuk/components/textarea/_index.scss
govuk_publishing_components-23.9.1 node_modules/govuk-frontend/govuk/components/textarea/_index.scss
govuk_publishing_components-23.9.0 node_modules/govuk-frontend/govuk/components/textarea/_index.scss
govuk_publishing_components-23.8.0 node_modules/govuk-frontend/govuk/components/textarea/_index.scss
govuk_publishing_components-23.7.7 node_modules/govuk-frontend/govuk/components/textarea/_index.scss