Skip to content

Commit 59719f0

Browse files
refactor(file): surf-1949
This reverts commit c1932fe.
1 parent fb08042 commit 59719f0

File tree

5 files changed

+31
-24
lines changed

5 files changed

+31
-24
lines changed

docs/components/file/_spec.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,25 @@
11
@import 'components/button/config';
2+
@import 'components/file/mixins/hxFileControl';
23

34
.file-input-spec {
45
hx-file-control {
6+
input[type="file"].mock-focus ~ label > hx-file-input {
7+
@include hxFileControl($pseudo-state: focus);
8+
}
9+
10+
input[type="file"].mock-active ~ label > hx-file-input {
11+
&.hxBtn{
12+
@include hxButton-active--secondary;
13+
}
14+
&.hxPrimary {
15+
@include hxButton-active--primary;
16+
}
17+
18+
&.hxTertiary {
19+
@include hxButton-active--tertiary;
20+
}
21+
}
22+
523
hx-file-input.hxBtn.mock-hover {
624
@include hxButton-hover--secondary;
725

docs/docs.less

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,5 @@ min-version {
183183
@import 'demo/tabset-docs';
184184
@import 'demo/tooltip-docs';
185185
// Spec Styles
186-
@import 'spec/file-input-spec';
187186
@import 'spec/panel-spec';
188187
@import 'spec/radio-spec';

docs/styles/spec/file-input-spec.less

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
@import "vars";
2+
3+
/// ========== EXTERNAL COMPONENT DEPENDENCIES ========== ///
24
@import "components/form/config";
35
@import "components/box/config";
6+
7+
/// ========== MIXINS ========== ///
8+
@import "./mixins/hxFileControl";
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@mixin hxFileControl($pseudo-state: null) {
2+
@if $pseudo-state == focus {
3+
box-shadow: $focus-glow;
4+
}
5+
@else {
6+
//no additional styles applied
7+
}
8+
}

0 commit comments

Comments
 (0)