-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(input): Set the height of inputs and buttons to ensure they are …
…the same cross-browser.
- Loading branch information
1 parent
14c75e2
commit f316a2b
Showing
4 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@import '../scss/settings/typography'; | ||
|
||
.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 | ||
} | ||
|
||
.font { | ||
font-family: $font-telus; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters