Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
I have the following file upload widget and i want to edit the background of the uploaded file part.
I have tried using the custom css and setting list-item in the customClass property
.list-item::part(file-item) {
background:#383838;
}
following the ptc documentation I tried also this
@supports (ptcs-style-unit: "PTCS-FILEUPLOAD") {
[part=file-item] {
background-color: #383838;
}
}
but all my test failed to edit the style of that part
Solved! Go to Solution.
can you try below code?
@supports(ptcs-style-unit:"PTCS-FILE-UPLOAD-LIST-ITEM"){
[part~=file-item] {
background: red;
}
}
@RC_9962782 what is the version of your ThingWorx instance?
We would like to know which area you would like to change the BK color, a demo mashup might be helpful.
The thingworx version is 9.6.0
The area that I want to change the background is the one that opens after I selected a file. The area that has the white background in the screen in the original question.
I linked a demo mashup
can you try below code?
@supports(ptcs-style-unit:"PTCS-FILE-UPLOAD-LIST-ITEM"){
[part~=file-item] {
background: red;
}
}
thank you, this is correct