Skip to content

Commit

Permalink
Merge pull request #5 from wide/fixios15
Browse files Browse the repository at this point in the history
Fix iOS 15 colors on forms
  • Loading branch information
jdacosta authored Sep 28, 2021
2 parents af76c35 + 99a0373 commit 850b07e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wide/styles-reset",
"version": "2.1.0",
"version": "2.1.1",
"description": "Restore CSS base for all browser.",
"license": "MIT",
"author": "Julien Martins Da Costa (https://github.com/jdacosta)",
Expand Down
10 changes: 10 additions & 0 deletions src/reset/forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,19 @@ button,
[type='button'], // -> [1]
[type='reset'],
[type='submit'] {
color: currentColor; // fix iOS15
-webkit-appearance: button; // -> [2]
}

///
/// Keep the current color on iOS15.
///
[type='file'] {
&::file-selector-button {
color: currentColor;
}
}

///
/// Add 'hand' cursor to non-disabled button elements.
///
Expand Down

0 comments on commit 850b07e

Please sign in to comment.