# Annotation Icons does not change color as selected

**URL:** <https://pdfjs.community/t/annotation-icons-does-not-change-color-as-selected/177>\
**Category:** Technical Support\
**Created:** [August 5, 2020, 5:22am UTC](https://pdfjs.community/t/annotation-icons-does-not-change-color-as-selected/177 "2020-08-05T05:22:14Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![abhishek11.maurya199](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@abhishek11.maurya199](https://pdfjs.community/u/abhishek11.maurya199)\
**Post date:** [August 5, 2020, 5:22am UTC](https://pdfjs.community/t/annotation-icons-does-not-change-color-as-selected/177/1 "2020-08-05T05:22:14Z")

</div>

Hello,  
I have changed the icon of “AnnotationCreateTextHighlight” using “updateElements”.  
But now when i select any different color, the color of icon remains same.  
Is there any way to achieve this ( changing of icon/img color with different color selected ) using new img? Please comment if below steps are feasible, if not please provide any solution which may be shorted than below.

Steps:  
1- Download different color img ( 5 color in use ).  
2- Get selected color in code and accordingly use  
“updateElement” to update img. (Don’t know how to get selected color, plz suggest )

Regards  
Abhishek Maurya

---

_[View the full topic](https://pdfjs.community/t/annotation-icons-does-not-change-color-as-selected/177)._
