Skip to main content
15-Moonstone
June 25, 2020
Solved

Dropdown

  • June 25, 2020
  • 1 reply
  • 2652 views

Thingworx : 8.5.2

 

Issue 1 : How do I set background color and font color for list item values before selection.I could not change default white background and black font color.

 

Issue 2 : I could not change opacity of colors.It is taking 1 for black.But I want to change it to 0.16.

 

Issue 3 : I could not change width of list items..

 

Please help me resolve the queries.

 

 

Best answer by cmorfin

Hi @krishnakomal123 

 

This custom css can do as well

 

ptcs-list::part(list-item){
background: yellow !important;
}

 

Regards

Christophe

 

1 reply

19-Tanzanite
June 25, 2020

Hi @krishnakomal123 

 

You can change the background color of the rows by using a style Theme and apply it tot the mashup.

In the Style Theme define the desired color  under Elements > Grids and Lists > Lists and Dropdowns > Background > Main Row Background

 

The opacity is a known issue https://www.ptc.com/en/support/article/CS320384

 

The Dropdown widget does not allow to set the width , the legacy list widget does but it is legacy and may be deprecated soon. You can submit a Product idea to have this added in a future release.

 

Hope this helps

Regards

Christophe

 

15-Moonstone
June 29, 2020

Is it possible to change it without style theme.Because if i use style theme it is impacting buttons and other widgets too.

cmorfin19-TanzaniteAnswer
19-Tanzanite
June 29, 2020

Hi @krishnakomal123 

 

This custom css can do as well

 

ptcs-list::part(list-item){
background: yellow !important;
}

 

Regards

Christophe