Commit c190412 1 parent 900811a commit c190412 Copy full SHA for c190412
File tree 1 file changed +41
-23
lines changed
packages/ffe-datepicker/less
1 file changed +41
-23
lines changed Original file line number Diff line number Diff line change 1
1
.ffe-dateinput {
2
2
position : relative ;
3
3
display : inline-block ;
4
+ grid-column : 1 e (' /' ) 3 ;
5
+ grid-row : 1 e (' /' ) -1 ;
6
+ min-width : 210px ;
4
7
5
8
&--full-width {
6
9
display : block ;
7
10
}
8
11
9
- @media (hover : hover ) and (pointer : fine) {
10
- & :hover {
11
- color : var (--ffe-g-primary-color );
12
- }
12
+ & :has([aria- invalid= ' true' ]), & :has([aria- invalid= ' true' ]):hover {
13
+ border-color : var (--ffe-g-error-color );
14
+ border-style : solid ;
15
+ }
16
+
17
+ & .ffe-input-field {
18
+ display : flex ;
19
+ align-items : center ;
13
20
}
14
21
15
22
&__field {
16
- min-width : 160px ;
17
- grid-column : 1 e (' /' ) 3 ;
18
- grid-row : 1 e (' /' ) -1 ;
23
+ padding-block : var (--ffe-spacing-2xs );
24
+
25
+ &-year {
26
+ min-width : 4ch ;
27
+ }
28
+
29
+ & :focus {
30
+ background-color : var (--ffe-farge-frost-30 );
31
+ outline : none ;
32
+ }
33
+
19
34
& ::-ms-clear {
20
35
display : none ;
21
36
}
22
37
23
- & [aria- invalid= ' true' ] {
24
- border-color : var ( --ffe-g-error-color ) ;
25
- border-style : solid ;
38
+ & [role = " spinbutton " ][ aria- invalid= ' true' ] {
39
+ border-color : transparent ;
40
+ border-style : none ;
26
41
}
27
-
28
- @media (hover : hover ) and (pointer : fine) {
29
- /* stylelint-disable selector-max-specificity */
30
- & :focus + .ffe-datepicker__button :hover {
31
- border-color : transparent ;
32
- box-shadow : 0 0 0 2px var (--ffe-v-datepicker-border-hover-color );
33
- }
34
- /* stylelint-enable selector-max-specificity */
42
+ & [role = " spinbutton" ][aria- invalid= ' true' ]:focus {
43
+ box-shadow : none ;
35
44
}
36
45
}
46
+ &--message {
47
+ padding-bottom : 0 ;
48
+ }
37
49
}
38
50
51
+
52
+
39
53
.ffe-datepicker {
40
- display : inline-block ;
41
54
position : relative ;
55
+ display : grid ;
56
+ grid-template-columns : 1fr auto ;
57
+ width : fit-content ;
42
58
43
59
&--full-width {
44
- display : block ;
60
+ width : 100 % ;
45
61
}
46
62
47
- &--wrapper {
48
- display : grid ;
49
- grid-template-columns : 1 fr auto ;
63
+ .ffe-field-message {
64
+ position : absolute ;
65
+ top : calc ( 100 % + var ( --ffe-spacing-xs )) ;
50
66
}
51
67
52
68
&__button {
60
76
transition : all var (--ffe-transition-duration ) var (--ffe-ease );
61
77
width : 56px ;
62
78
cursor : pointer ;
79
+ z-index : 1 ;
80
+ isolation : isolate ;
63
81
64
82
& :focus ,
65
83
& :active {
You can’t perform that action at this time.
0 commit comments