Skip to content

Commit

Permalink
Update: (Fixes #447) Forms in ios have shadow on top due to default b…
Browse files Browse the repository at this point in the history
…rowser styles

Update: Firefox input[type="range"] shouldn't have background and border

Update: Atlas Form inputs should have `font-size: 1rem` to prevent zoom on focus in mobile
  • Loading branch information
pat270 committed Jan 24, 2018
1 parent 949bee5 commit c816472
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 c816472

Please sign in to comment.