Skip to content

Commit

Permalink
Merge pull request #448 from pat270/form-control-inputs
Browse files Browse the repository at this point in the history
Update: (Fixes #447) Forms in ios have shadow on top due to default b…
  • Loading branch information
jbalsas authored Jan 24, 2018
2 parents 949bee5 + c816472 commit ed44876
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/clay/src/scss/atlas/variables/_forms.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$input-font-size-mobile: 1rem !default; // 16px

$input-label-font-size: 0.8125rem !default; // 13px
$input-label-font-weight: $font-weight-semi-bold !default;
$input-label-margin-bottom: 0.25rem !default; // 4px
Expand Down
11 changes: 11 additions & 0 deletions packages/clay/src/scss/components/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,17 @@ label {
}
}

&[type="range"] {
background-color: transparent;
border-color: transparent;
}

&:not([type="range"]) {
@media screen and (-webkit-min-device-pixel-ratio: 0) {
-webkit-appearance: none;
}
}

&::-ms-clear,
&::-ms-reveal {
display: none;
Expand Down

0 comments on commit ed44876

Please sign in to comment.