-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tooltip): Set tooltip min and max widths
- Loading branch information
1 parent
4c6dee4
commit 7bc9ff8
Showing
6 changed files
with
29 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
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
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
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
exports[`Tooltip renders 1`] = ` | ||
<div | ||
class="wrapper" | ||
class="fixLineHeight" | ||
id="the-id" | ||
> | ||
<div | ||
|