Hi guys,
It seems that the scrollbar does not get styled in the dark mode. It looks the same as it in light mode.
| scrollbar in dark mode, it's too sharp in the dark background for me | |
| scrollbar in light mode |
I've tries to style the scrollbar in the following html. But it does not take effect. How does this happen? Or is there any work arround? Many thanks.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script type="module" src="https://js.arcgis.com/calcite-components/2.4.0/calcite.esm.js"></script>
<link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/2.4.0/calcite.css" />
<style>
body {
background-color: var(--calcite-color-background);
}
calcite-panel {
scrollbar-color:red;
}
</style>
</head>
<body class='calcite-mode-dark'>
<calcite-panel style='width:200px;height:90px;'>
<calcite-button>A</calcite-button>
<calcite-button>B</calcite-button>
<calcite-button>C</calcite-button>
<calcite-button>D</calcite-button>
</calcite-panel>
</body>
</html>