coreui / coreui-free-react-admin-template

Open source admin template based on Bootstrap 5 and React.js
https://coreui.io/product/free-react-admin-template/
MIT License
4.54k stars 2.26k forks source link

Charts tooltip doesn't have any style #420

Closed ArekkMirmun closed 5 months ago

ArekkMirmun commented 5 months ago

Description Charts tooltip doesn't have the format that it had in older versions. It looks like the style provided in variable.scss does not apply correctly. I am able to solve it temporary by adding all the following styles manually to custom.scss

// Custom tooltips

.chartjs-tooltip {
  position: absolute;
  z-index: $zindex-sticky + 1;
  padding: ($spacer * .25) ($spacer * .5);
  color: #fff;
  pointer-events: none;
  background: rgba(0, 0, 0, .7);
  opacity: 0;
  @include transition(all .15s ease);
  transform: translate(-50%, 0);
  @include border-radius($border-radius);
}

.chartjs-tooltip-header {
  margin-bottom: ($spacer * .5);
}

.chartjs-tooltip-header-item {
  font-size: $font-size-sm;
  font-weight: $font-weight-bold;
}

.chartjs-tooltip-body-item {
  align-items: center;
  font-size: $font-size-sm;
  white-space: nowrap;
}

Screenshots [Older Versions of CoreUI] image image image

[Version 5 of CoreUI] image image image

To Reproduce Clone repository

npm install

npm start

mrholek commented 5 months ago

@ArekkMirmun, in the latest commit, I fixed it.