-
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.
- Loading branch information
1 parent
cbaa312
commit e94a9c0
Showing
5 changed files
with
50 additions
and
6 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
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,3 +1,3 @@ | ||
``` | ||
<Input> Input </Input> | ||
<Input label="First name" /> | ||
``` |
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,41 @@ | ||
@import '../../scss/settings/colours'; | ||
@import '../../scss/settings/typography'; | ||
|
||
$form-field-border-radius: 4px; | ||
|
||
.label { | ||
composes: medium boldFont from '../Typography/Text/Text.modules.scss'; | ||
|
||
display: block; | ||
margin-bottom: 3px; | ||
|
||
color: $color-text; | ||
} | ||
|
||
// TODO: All of these are being overridden by forms.scss :( | ||
.input { | ||
width: 100%; | ||
padding: 11px; | ||
|
||
outline: 0; | ||
border: 1px solid $color-shuttle-grey; | ||
border-radius: $form-field-border-radius; | ||
box-shadow: 0 1px 8px rgba(0, 0, 0, .05); | ||
|
||
font-family: $font-telus; | ||
|
||
// TODO: Adjust the font properties to use the Text modules | ||
font-size: rem($body-text-size); | ||
letter-spacing: .4px; | ||
line-height: 1.4; | ||
|
||
color: $color-shark; | ||
background-color: $color-white; | ||
|
||
transition: background-color .1s linear; | ||
|
||
&:focus { | ||
border-color: transparent; | ||
box-shadow: 0 0 4px 1px $color-shuttle-grey; | ||
} | ||
} |
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