diff --git a/src/components/FormFields.modules.scss b/src/components/FormFields.modules.scss index 2ef8b817fb..e1ac18abac 100644 --- a/src/components/FormFields.modules.scss +++ b/src/components/FormFields.modules.scss @@ -1,14 +1,21 @@ @import '../scss/settings/typography'; +// Hardcode the height rather than relying on line-height, padding, and borders to ensure that form fields such as +// buttons, inputs, and selects all have the same height. +// Browsers treat line height of input fields oddly, which makes it an unreliable method for aligning the height +// of various elements. +// --> http://joshnh.com/weblog/line-height-doesnt-work-as-expected-on-inputs/ .height { - // Hardcode the height rather than relying on line-height, padding, and borders to ensure that form fields such as - // buttons, inputs, and selects all have the same height. - // Browsers treat line height of input fields oddly, which makes it an unreliable method for aligning the height - // of various elements. - // --> http://joshnh.com/weblog/line-height-doesnt-work-as-expected-on-inputs/ height: 3.25rem; // 52px } +// Ensure inputs and other form elements do not use the browser font. .font { font-family: $font-telus; } + +// The tooltip is positioned absolutely and this is needed on the row that contains the tooltip so that the bubble +// has enough available width to be sized properly. +.containsTooltip { + position: relative; +} diff --git a/src/components/Input/Input.jsx b/src/components/Input/Input.jsx index fb9ba68653..e798833015 100644 --- a/src/components/Input/Input.jsx +++ b/src/components/Input/Input.jsx @@ -15,6 +15,7 @@ import safeRest from '../../utils/safeRest' import joinClassNames from '../../utils/joinClassNames' import generateId from '../../utils/generateId' +import formFieldStyles from '../FormFields.modules.scss' import styles from './Input.modules.scss' const getWrapperClassName = (feedback, focus, disabled) => { @@ -150,7 +151,7 @@ class Input extends React.Component { return ( - +