Skip to content

Commit

Permalink
feat(Datepicker): enforce smaller width (#1692)
Browse files Browse the repository at this point in the history
  • Loading branch information
atlwendy authored and benjamincharity committed Sep 12, 2019
1 parent c7d4d09 commit 47054be
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea/
.vscode/
dist/
node_modules/
Expand Down
2 changes: 0 additions & 2 deletions terminus-ui/date-range/src/date-range.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
(selected)="startDateSelected($event)"
(inputBlur)="startBlur($event)"
#start
fxFlex
></ts-input>

<span class="c-date-range__seperator">
Expand All @@ -34,6 +33,5 @@
(selected)="endDateSelected($event)"
(inputBlur)="endBlur($event)"
#end
fxFlex
></ts-input>
</div>
4 changes: 3 additions & 1 deletion terminus-ui/form-field/src/form-field.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ $subscript-margin-top: .5em / $subscript-font-scale;
$wrapper-padding-bottom: ($subscript-margin-top + $line-height) * $subscript-font-scale;
// The amount we offset the label from the input text in the outline appearance.
$outline-appearance-label-offset: -.25em;

// The width we set for datepicker
$date-picker-width: 200px;


//
Expand Down Expand Up @@ -373,6 +374,7 @@ $outline-appearance-label-offset: -.25em;

// Target an input datepicker within a form field
.ts-input--datepicker {
width: $date-picker-width;
.ts-form-field {
// Center the datepicker icon vertically
.ts-form-field__suffix {
Expand Down

0 comments on commit 47054be

Please sign in to comment.