HOW TO
After the introduction of the Calcite Design System in ArcGIS Hub, the HTML formatting for layout elements has changed. This article describes the workflow to edit the title, text, and chevron colors of the accordion menus independent of the default theme colors in ArcGIS Hub.
The image below shows the default theme of the accordion menu in ArcGIS Hub.
Note: The following method changes the title, text, and chevron colors of the accordion menus on the site collectively.
Note: The first ui-text tag modifies the hover effect and activated state. The second ui-text tag modifies the default text color and the third ui-text tag modifies the chevron color.
<head> <style> body * { --calcite-ui-text-1: #<HEX>; --calcite-ui-text-2: #<HEX>; --calcite-ui-text-3: #<HEX>; } </style> </head>
Note: Alternatively, in Step 4, copy the following code and paste it in the <div class> section of the existing HTML code to edit the accordion menus individually. Repeat this step for the other accordion menus. style="--calcite-ui-text-1: #HEX; --calcite-ui-text-2: #HEX; --calcite-ui-text-3: #HEX;"
The image below shows the accordion menu with the customized theme color.
Get help from ArcGIS experts
Download the Esri Support App