Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lower z index of scale border so it draws behind the chart elements again #9412

Closed

Conversation

LeeLenaleee
Copy link
Collaborator

Comming from #8936 resolves #9411

Since this was the behaviour in V2 and before v3.2 It should be considered a breaking change that the border of a scale draws above the chart elements by default, so it should be delayed to v4

https://codepen.io/leelenaleee/pen/ExmZXPa

@@ -1599,8 +1599,8 @@ export default class Scale extends Element {
_layers() {
const me = this;
const opts = me.options;
const tz = opts.ticks && opts.ticks.z || 0;
const gz = opts.grid && opts.grid.z || 0;
const tz = opts.ticks && opts.ticks.z || -1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use valueOrDefault, because you can't define z as 0 now. Does the tick z need to be changed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test wont fail if it isnt changed, but I thought since they where at the same z-index it would be logic to keep them at the same z-index

kurkle
kurkle previously approved these changes Jul 14, 2021
etimberg
etimberg previously approved these changes Jul 15, 2021
@etimberg
Copy link
Member

I think this needs a rebase for the CI to work.

@kurkle
Copy link
Member

kurkle commented Jul 15, 2021

Could also use a regression test

@LeeLenaleee LeeLenaleee dismissed stale reviews from etimberg and kurkle via 330b51b July 15, 2021 23:22
@LeeLenaleee
Copy link
Collaborator Author

It seems my knowledge on how to do a rebase is not good enough because it tries to merge existing commits into the master again, should I open a new clean pr to avoid issues or will this one be fine?

@kurkle
Copy link
Member

kurkle commented Jul 16, 2021

@LeeLenaleee I do the following when rebasing:

git checkout master
git pull upstream master
# only needed if your master bransh has some extra commits you need to get rid of
# git reset --hard upstream/master
git checkout <pr branch>
git rebase master
git push -f

@LeeLenaleee
Copy link
Collaborator Author

Closing in favour of #9426

@LeeLenaleee LeeLenaleee deleted the fix/axis-line-behind-bubble branch July 16, 2021 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scale border draws over the chart elements
3 participants