@@ -43,24 +43,26 @@ interface IProps {
43
43
btext ?: string ;
44
44
}
45
45
46
+ // DO NOT REMOVE THIS COMMENT BLOCK (USED FOR TRANSLATOR KEYS DETECTION DURING CODE SCANNING)
46
47
// __("reader.annotations.colors.red")
47
48
// __("reader.annotations.colors.orange")
48
49
// __("reader.annotations.colors.yellow")
49
50
// __("reader.annotations.colors.green")
50
- // __ ("reader.annotations.colors.bluegreen")
51
- // __ ("reader.annotations.colors.lightblue")
51
+ // __xxx ("reader.annotations.colors.bluegreen") // ===> "bluegreen" translation becomes unused!
52
+ // __xxx ("reader.annotations.colors.lightblue") // ===> "lightblue" translation becomes unused!
52
53
// __("reader.annotations.colors.cyan")
53
54
// __("reader.annotations.colors.purple")
54
55
56
+ // https://github.com/readium/annotations/blob/main/README.md#14-body
55
57
export const annotationsColorsLight : Record < string , TTranslatorKeyParameter > = {
56
- "#EB9694" : "reader.annotations.colors.red" ,
57
- "#FAD0C3" : "reader.annotations.colors.orange" ,
58
- "#FEF3BD" : "reader.annotations.colors.yellow" ,
59
- "#C1EAC5" : "reader.annotations.colors.green" ,
60
- "#BEDADC" : "reader.annotations.colors.bluegreen" ,
61
- "#C4DEF6" : "reader.annotations.colors.lightblue" ,
62
- "#BED3F3" : "reader.annotations.colors.cyan" ,
63
- "#D4C4FB" : "reader.annotations.colors.purple" ,
58
+ "#EB9694" : "reader.annotations.colors.red" , // "pink"
59
+ "#FAD0C3" : "reader.annotations.colors.orange" , // "orange"
60
+ "#FEF3BD" : "reader.annotations.colors.yellow" , // "yellow"
61
+ "#C1EAC5" : "reader.annotations.colors.green" , // "green"
62
+ // "#BEDADC": "reader.annotations.colors.bluegreen", // ===> "bluegreen" translation becomes unused!
63
+ // "#C4DEF6": "reader.annotations.colors.lightblue", // ===> "lightblue" translation becomes unused!
64
+ "#BED3F3" : "reader.annotations.colors.cyan" , // "blue"
65
+ "#D4C4FB" : "reader.annotations.colors.purple" , // "purple"
64
66
} ;
65
67
66
68
const drawType : TDrawType [ ] = [
@@ -191,7 +193,7 @@ export const AnnotationEdit: React.FC<IProps> = (props) => {
191
193
checked = { colorSelected === colorHex }
192
194
aria-label = { __ ( translatorKey ) }
193
195
/>
194
- < label htmlFor = { `anno_color_${ uuid } _${ colorHex } ` }
196
+ < label title = { __ ( translatorKey ) } htmlFor = { `anno_color_${ uuid } _${ colorHex } ` }
195
197
style = { { backgroundColor : colorHex , border : colorSelected === colorHex ? "1px solid var(--color-dark-grey)" : "" } }
196
198
>
197
199
{ colorSelected === colorHex ? < SVG ariaHidden svg = { CheckIcon } /> : < > </ > }
0 commit comments