File tree Expand file tree Collapse file tree 2 files changed +39
-16
lines changed
javascripts/admin/addon/components Expand file tree Collapse file tree 2 files changed +39
-16
lines changed Original file line number Diff line number Diff line change @@ -126,15 +126,17 @@ const Picker = class extends Component {
126
126
{{on " input" this . onInput}}
127
127
{{on " change" this . onChange}}
128
128
/>
129
- {{icon " hashtag" }}
130
- <input
131
- class =" color-palette-editor__text-input"
132
- type =" text"
133
- maxlength =" 6"
134
- value ={{this .displayedColor }}
135
- {{on " keypress" this . onTextKeypress}}
136
- {{on " change" this . onTextChange}}
137
- />
129
+ <div class =" color-palette-editor__input-wrapper" >
130
+ {{icon " hashtag" class =" color-palette-editor__icon" }}
131
+ <input
132
+ class =" color-palette-editor__text-input"
133
+ type =" text"
134
+ maxlength =" 6"
135
+ value ={{this .displayedColor }}
136
+ {{on " keypress" this . onTextKeypress}}
137
+ {{on " change" this . onTextChange}}
138
+ />
139
+ </div >
138
140
</template >
139
141
};
140
142
Original file line number Diff line number Diff line change 40
40
41
41
& __picker {
42
42
display : flex ;
43
- justify-content : center ;
44
43
align-items : center ;
45
- padding : 5 px 10 px ;
46
- gap : 5 px ;
44
+ gap : var ( --space-2 ) ;
45
+ padding : var ( --space-2 ) ;
47
46
border : 1px solid var (--primary-low );
47
+ border-radius : var (--d-input-border-radius );
48
48
49
- .d-icon-hashtag {
50
- color : var (--primary-high );
51
- font-size : var (--font-down-2 );
49
+ & :focus-within {
50
+ border-color : var (--tertiary );
51
+ outline : 2px solid var (--tertiary );
52
+ outline-offset : -2px ;
52
53
}
53
54
}
54
55
56
+ & __input-wrapper {
57
+ position : relative ;
58
+ display : flex ;
59
+ align-items : center ;
60
+ }
61
+
62
+ & __icon {
63
+ position : absolute ;
64
+ pointer-events : none ;
65
+ color : var (--primary-medium );
66
+ font-size : var (--font-down-2 );
67
+ }
68
+
55
69
& __revert .--hidden {
56
70
visibility : hidden ;
57
71
}
58
72
59
73
input [type = " color" ] {
60
74
width : 23px ;
61
75
height : 23px ;
76
+ border-radius : 100px ;
62
77
}
63
78
64
79
input [type = " text" ] {
65
80
font-family : monospace ;
66
81
margin : 0 ;
67
- width : 5em ;
82
+ width : 4.5rem ;
83
+ padding-left : var (--space-4 );
84
+ border : none ;
85
+
86
+ & :focus {
87
+ outline : none ;
88
+ }
68
89
}
69
90
70
91
& __color-code {
You can’t perform that action at this time.
0 commit comments