Closed dotzenith closed 2 years ago
Hi, thank you for this, I think this is a great fix!
I couldn't do it as I have not enough free time.
Absolutely no problem! I've been using simple-bar for almost a year so it's only fair I contribute my fair share :)
As detailed in #290, recent updates broke the background setting for data widgets, causing them to have no background when
No Bar Background
was set.Previously the
No Bar Background
only removed background from places where no widgets were present, but the recent changes remove the background from the cluster of data widgets as well. Since the behavior of the spaces cluster remained unchanged, it leads me to believe that the behavior for data cluster is unintentional.This PR aims to restore the (assumed) intended behavior that was present before df70c4c44c262ca45bb883d3506730f0a1167bc6
The "new" styling for
.simple-bar--no-bar-background .simple-bar__data
is taken directly fromsimple-bar--no-bar-background.simple-bar--data
present in the old (pre df70c4c44c262ca45bb883d3506730f0a1167bc6)lib/styles/core/base.js
The choice to put the styling in
lib/styles/components/data/data-widget.js
instead of any other place was made to mirror a similar setting for spaces widget present inlib/styles/components/spaces/spaces.js
. Please let me know if the styling should be moved elsewhereAny and all feedback is welcomed! I hope this can resolve the issue for other users as well!