chartjs / chartjs/Chart.js

boxPadding not working properly in RTL languages

Open
#10,771 2 comments 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
JavaScript
Stars
67.7k
Forks
11.9k
Avg merge
7h 39m
Merged PRs (30d)
5

Description

### Expected behavior

Padding between the color box and the text.

### Current behavior

Color box is pushed out of the tooltip.

### Reproducible sample

See Optional extra steps

### Optional extra steps/info to reproduce

An example with boxPadding: 15

```
plugins: {
tooltip: {
rtl: true,
boxPadding: 15,
}
},
```

![2022-10-09_130208](https://user-images.githubusercontent.com/16535919/194755974-bbcf62d0-8c7b-4db9-a42d-b7fb33da6109.png)

### Possible solution

_No response_

### Context

_No response_

### chart.js version

v3.9.1

### Browser name and version

_No response_

### Link to your project

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.