Skip to content

Commit

Permalink
chore(pr-review): microsoft styles fixes for edge and ie
Browse files Browse the repository at this point in the history
  • Loading branch information
catsiller committed Jun 17, 2019
1 parent a60d2e8 commit 650af45
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/components/file/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,14 @@ <h2 id="file-input">File Input</h2>
<pre><code v-text="snippet"></code></pre>
</footer>
</div>
<p class="hxSubdued hxSubBody">
<hx-icon type="exclamation-triangle"></hx-icon>
Microsoft browsers never match the <code>input[type="file"]:active</code> CSS selector.
</p>
<p class="hxSubdued hxSubBody">
<hx-icon type="exclamation-triangle"></hx-icon>
Microsoft browsers apply two tab stops on <code>&lt;input type="file"&gt;</code> elements.
</p>
</section>

<section>
Expand Down
4 changes: 4 additions & 0 deletions src/helix-ui/elements/HXFileInputElement.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
@import './HXElement';

#hxFileInput {
//width: 100%;
}

#hxIcon {
display: none;
}
Expand Down
7 changes: 7 additions & 0 deletions src/helix-ui/styles/components/files/hx-file-control.less
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ hx-file-control {

> input[type="file"] {
#Mix.hideInput();
background: none;

&::-ms-browse,
&::-ms-value {
opacity: 0.01;
//visibility: hidden;
}
}
}

Expand Down

0 comments on commit 650af45

Please sign in to comment.