1. How can we change the buttons of each tool to be rounded on your default sketch sample?
2. Is this the style pattern that all widget controls will follow going forward or is this just an exception? We have noticed that all other controls don't follow the same approach.
Hello @JoseSousa1 ,
Since the Sketch widget is using calcite as of version 4.21, it is not possible to override most of the widget's css. This is because Calcite is using web components. There are some minor styling changes you can make. For instance, here is a previous post where a solution was provided to update the Sketch button's background color.
However, updating the Sketch buttons to be rounded would not be something that would be possible without access to the widget's internal components, which is not available at the app level.
We plan on updating the JSAPI widgets to use Calcite gradually through future releases. Also, we are planning to release some documentation in the near future to explain this and demonstrate what is possible to override with the new calcite design system.
This is good feedback in regards to how our users are planning to override the Sketch widget's default css. I will take note of this as we continue to discuss what we make available in the widgets to override.
Thanks for coming back to me promptly. Most of our development consists in embedding a custom GIS web app inside another system e.g. SAP, Salesforce etc.
So we do have to comply with the enterprise standards and design guidelines in place. Salesforce as an example, have their own lightning scss SDK. Unlike Calcite, they allow us to customize their controls a lot further. So our app needs to conform to their design standard not the other way around. It's just the nature of enterprise apps.
The things we typically have to change are:
Can you evaluate with your team to see if these properties can be made available for us to override from the app level?
Also, if we use arcgis-cli to generate a custom theme and we add it to the app using:
<link href="path/to/your/theme/main.css" />
Will this allow us to override the widget settings? Or for now, we will never be able to override them?