File tree Expand file tree Collapse file tree 5 files changed +31
-24
lines changed Expand file tree Collapse file tree 5 files changed +31
-24
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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' ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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" ;
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments