I have been developing a web application using Angular 16 and the Web SDK version 1019 and I am encountering a problem whereby some of my buttons are displaying unwanted box shadow effects. I say “some” because most are not having this problem.
Unaffected button
Affected button
As possible solutions, I have tried to remove any box-shadow effects setting box-shadow: none
in both my component’s stylesheet and the global stylesheet.
I then tried adding the !important
modifier to the attribute value in both local and global stylesheet, but neither solution worked. Then I tried to remove all transitions or animations by default in styles.less
but it is still not working.
transition: none !important;
animation: none !important;
box-shadow: none !important;
-webkit-box-shadow: none !important;
-moz-box-shadow: none !important;
When I inspected one of the problematic buttons using DevTools I could not find any problematic styling applied to it compared to the unaffected button.
Unaffected button
Affected button