fix(ui): broken sidebar, table of content and header on linux #315
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
We've found a strange behavior in some UI components on Linux. Seems like a bug on a GPU side.
Cause
During debug I noticed, that problem disappears when we hover an element. In other words, the problem reproduced only on elements without
background
.The second reason is our
--squircle
mixin which used-webkit-mask-box-image
internally. If we disable it, problem disappeared.Solution
I've disabled squircle on default states of elements. Now we're adding it only when it has a bg (on hover or active state)
Resolves #314