File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
feature-locales/rotate-gradient Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "direction" : " Direction"
3+ }
Original file line number Diff line number Diff line change @@ -21,11 +21,11 @@ export default async function ({ feature, console }) {
2121
2222 let name = document . createElement ( "span" ) ;
2323 name . className = "color-picker_label-name_17igY" ;
24- name . textContent = "Direction" ;
24+ name . textContent = feature . msg ( "direction" ) ;
2525
2626 let value = document . createElement ( "span" ) ;
2727 value . className = "color-picker_label-readout_9vjb2" ;
28- value . textContent = "0deg " ;
28+ value . textContent = "0 " ;
2929
3030 data . appendChild ( name ) ;
3131 data . appendChild ( value ) ;
@@ -150,7 +150,7 @@ export default async function ({ feature, console }) {
150150 lastRotation = Math . floor ( ( newLeft / 124 ) * 360 )
151151
152152 value . textContent =
153- Math . floor ( ( newLeft / 124 ) * 360 ) . toString ( ) + "deg" ;
153+ Math . floor ( ( newLeft / 124 ) * 360 ) . toString ( )
154154
155155 handle . style . left = newLeft + "px" ;
156156 }
@@ -183,7 +183,7 @@ export default async function ({ feature, console }) {
183183 lastRotation = Math . floor ( ( newLeft / 124 ) * 360 )
184184
185185 value . textContent =
186- Math . floor ( ( newLeft / 124 ) * 360 ) . toString ( ) + "deg" ;
186+ Math . floor ( ( newLeft / 124 ) * 360 ) . toString ( )
187187
188188 handle . style . left = newLeft + "px" ;
189189 }
You can’t perform that action at this time.
0 commit comments