Commit 2547231 1 parent 900811a commit 2547231 Copy full SHA for 2547231
File tree 1 file changed +37
-23
lines changed
packages/ffe-datepicker/less
1 file changed +37
-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' ]){
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
+ & :focus {
26
+ background-color : var (--ffe-farge-frost-30 );
27
+ outline : none ;
28
+ }
29
+
19
30
& ::-ms-clear {
20
31
display : none ;
21
32
}
22
33
23
- & [aria- invalid= ' true' ] {
24
- border-color : var ( --ffe-g-error-color ) ;
25
- border-style : solid ;
34
+ & [role = " spinbutton " ][ aria- invalid= ' true' ] {
35
+ border-color : transparent ;
36
+ border-style : none ;
26
37
}
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 */
38
+ & [role = " spinbutton" ][aria- invalid= ' true' ]:focus {
39
+ box-shadow : none ;
35
40
}
36
41
}
42
+ &--message {
43
+ padding-bottom : 0 ;
44
+ }
37
45
}
38
46
47
+
48
+
39
49
.ffe-datepicker {
40
- display : inline-block ;
41
50
position : relative ;
51
+ display : grid ;
52
+ grid-template-columns : 1fr auto ;
53
+ width : fit-content ;
42
54
43
55
&--full-width {
44
- display : block ;
56
+ width : 100 % ;
45
57
}
46
58
47
- &--wrapper {
48
- display : grid ;
49
- grid-template-columns : 1 fr auto ;
59
+ .ffe-field-message {
60
+ position : absolute ;
61
+ top : calc ( 100 % + var ( --ffe-spacing-xs )) ;
50
62
}
51
63
52
64
&__button {
60
72
transition : all var (--ffe-transition-duration ) var (--ffe-ease );
61
73
width : 56px ;
62
74
cursor : pointer ;
75
+ z-index : 1 ;
76
+ isolation : isolate ;
63
77
64
78
& :focus ,
65
79
& :active {
You can’t perform that action at this time.
0 commit comments