Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing clear and reveal password icons from IE10 #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions formhack.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
--fh-focus-border-color: var(--fh-border-color);
--fh-focus-font-color: var(--fh-font-color);

/* Inputs Vendor Styling */
--fh-input-vendor-styling: none; /* comment this out to maintain vendor styling */

/* Select Vendor Styling */
--fh-select-vendor-styling: none; /* comment this out to maintain vendor styling */

Expand Down Expand Up @@ -131,6 +134,24 @@ input[list] {
-webkit-appearance: none;
}

/* Fields with standard height */
input[type="text"]::-ms-clear,
input[type="email"]::-ms-clear,
input[type="password"]::-ms-reveal,
input[type="search"]::-ms-clear,
input[type="color"]::-ms-clear,
input[type="date"]::-ms-clear,
input[type="datetime-local"]::-ms-clear,
input[type="month"]::-ms-clear,
input[type="number"]::-ms-clear,
input[type="tel"]::-ms-clear,
input[type="time"]::-ms-clear,
input[type="url"]::-ms-clear,
input[type="week"]::-ms-clear,
input[list]::-ms-clear {
display: var(--fh-input-vendor-styling);
}

/* Other */

textarea {
Expand Down
6 changes: 6 additions & 0 deletions formhack.sass
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ $fh-focus-bg-color: rgb(220, 220, 220) !default
$fh-focus-border-color: $fh-border-color !default
$fh-focus-font-color: $fh-font-color !default

// Inputs Vendor Styling
$fh-allow-input-vendor-styling: true !default

// Select Vendor Styling
$fh-allow-select-vendor-styling: true !default

Expand Down Expand Up @@ -126,6 +129,9 @@ input[type="week"],
input[list]
height: $fh-input-height
-webkit-appearance: none
@if $fh-allow-input-vendor-styling == false
&::-ms-clear, &::-ms-reveal
display: none


/* Other */
Expand Down
8 changes: 8 additions & 0 deletions formhack.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ $fh-focus-bg-color: rgb(220, 220, 220) !default;
$fh-focus-border-color: $fh-border-color !default;
$fh-focus-font-color: $fh-font-color !default;

// Inputs Vendor Styling
$fh-allow-input-vendor-styling: true !default;

// Select Vendor Styling
$fh-allow-select-vendor-styling: true !default;

Expand Down Expand Up @@ -134,6 +137,11 @@ input[type="week"],
input[list] {
height: $fh-input-height;
-webkit-appearance: none;
@if $fh-allow-input-vendor-styling == false {
&::-ms-clear, &::-ms-reveal {
display: none;
}
}
}

/* Other */
Expand Down