'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _styledComponents = require('styled-components');

var _styledComponents2 = _interopRequireDefault(_styledComponents);

var _HelpText = require('../../../components/HelpText');

var _HelpText2 = _interopRequireDefault(_HelpText);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
 * Adjustments to the top and bottom margin of helptext so that it:
 * 1. Retains a 1.5 line-height so that wrapped helptext lines are spaced correctly
 * 2. The very top of the helptext from a layout perspective is its cap-height (the very top of a capital letter)
 * 3. The very bottom of a helptext (even if wrapped) is the baseline (the bottom of a lowercase letter, not
 *    including descenders)
 */
exports.default = (0, _styledComponents2.default)(_HelpText2.default).withConfig({
  displayName: 'FieldHelpText'
})(['margin-top:-0.25em;margin-bottom:-0.5em;']);