Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
i am using Date widget in thingworx V-8.5 (Updated one), but i am not able to put border radius in date widget please any one help me on that.
if i am using custom CSS for this:
.customDate {
border: 2px solid red;
border-radius: 25px;
}
then this type of screen i am getting
Solved! Go to Solution.
I had a conversation with R&D and have a solution, or more correctly 3 solutions.
.widget-ptcsdatepicker::part(label){
color: orange;
}
/* Version one */
.widget-ptcsdatepicker::part(date-field-text-box) {
border-radius: 25px;
}
The part field for the text-box is nested two levels deep in the shadow-roots.
/* version two */
.widget-ptcsdatepicker::part(date-field) {
border: 1px solid green;
border-radius: 25px;
}
/* Version three */
.widget-ptcsdatepicker {
border: 1px solid red;
border-radius: 25px;
}
Hope this helps.
Peter
Hi @soumyabiswal.
We're doing some testing with this and will get back with you once we have more information.
Regards.
--Sharon
thanks fro your feedback.
please let me know any update ASAP this stopping my work.
I had a conversation with R&D and have a solution, or more correctly 3 solutions.
.widget-ptcsdatepicker::part(label){
color: orange;
}
/* Version one */
.widget-ptcsdatepicker::part(date-field-text-box) {
border-radius: 25px;
}
The part field for the text-box is nested two levels deep in the shadow-roots.
/* version two */
.widget-ptcsdatepicker::part(date-field) {
border: 1px solid green;
border-radius: 25px;
}
/* Version three */
.widget-ptcsdatepicker {
border: 1px solid red;
border-radius: 25px;
}
Hope this helps.
Peter
Hi @soumyabiswal.
If the previous response answered your question, please mark it as the Accepted Solution for the benefit of others with the same question.
Thank you for participating in our Community!
Regards.
--Sharon