Scrollbars outside .rz-layout missing styles

Hello i saw that scrollbars outside RadzenLayout (.rz-layout) are missing styles.
Dialogs are always outside .rz-layout.

I also noticed if u set class="rz-scrollbars" to the body the styles is correct (like in the demo).


To reproduce in demo:


This happen with all themes except "Standard Dark" as u can see:


In the "Standard Dark" css :

body:not(.rz-default-scrollbars)::-webkit-scrollbar,
body:not(.rz-default-scrollbars) ::-webkit-scrollbar {
  background-color: var(--rz-scrollbar-background-color);
  width: var(--rz-scrollbar-size);
  height: var(--rz-scrollbar-size);
}
body:not(.rz-default-scrollbars)::-webkit-scrollbar-thumb,
body:not(.rz-default-scrollbars) ::-webkit-scrollbar-thumb {
  background: var(--rz-scrollbar-color);
  border: 4px solid rgba(0, 0, 0, 0);
  background-clip: padding-box;
  border-radius: var(--rz-scrollbar-border-radius);
  min-width: var(--rz-scrollbar-size);
  min-height: var(--rz-scrollbar-size);
}
body:not(.rz-default-scrollbars)::-webkit-scrollbar-corner,
body:not(.rz-default-scrollbars) ::-webkit-scrollbar-corner {
  background-color: var(--rz-scrollbar-background-color);
}

.rz-layout::-webkit-scrollbar,
.rz-layout ::-webkit-scrollbar,
.rz-scrollbars::-webkit-scrollbar,
.rz-scrollbars ::-webkit-scrollbar {
  background-color: var(--rz-scrollbar-background-color);
  width: var(--rz-scrollbar-size);
  height: var(--rz-scrollbar-size);
}
.rz-layout::-webkit-scrollbar-thumb,
.rz-layout ::-webkit-scrollbar-thumb,
.rz-scrollbars::-webkit-scrollbar-thumb,
.rz-scrollbars ::-webkit-scrollbar-thumb {
  background: var(--rz-scrollbar-color);
  border: 4px solid rgba(0, 0, 0, 0);
  background-clip: padding-box;
  border-radius: var(--rz-scrollbar-border-radius);
  min-width: var(--rz-scrollbar-size);
  min-height: var(--rz-scrollbar-size);
}
.rz-layout::-webkit-scrollbar-corner,
.rz-layout ::-webkit-scrollbar-corner,
.rz-scrollbars::-webkit-scrollbar-corner,
.rz-scrollbars ::-webkit-scrollbar-corner {
  background-color: var(--rz-scrollbar-background-color);
}

In the other css :

.rz-layout::-webkit-scrollbar,
.rz-layout ::-webkit-scrollbar,
.rz-scrollbars::-webkit-scrollbar,
.rz-scrollbars ::-webkit-scrollbar {
  background-color: var(--rz-scrollbar-background-color);
  width: var(--rz-scrollbar-size);
  height: var(--rz-scrollbar-size);
}
.rz-layout::-webkit-scrollbar-thumb,
.rz-layout ::-webkit-scrollbar-thumb,
.rz-scrollbars::-webkit-scrollbar-thumb,
.rz-scrollbars ::-webkit-scrollbar-thumb {
  background: var(--rz-scrollbar-color);
  border: 4px solid rgba(0, 0, 0, 0);
  background-clip: padding-box;
  border-radius: var(--rz-scrollbar-border-radius);
  min-width: var(--rz-scrollbar-size);
  min-height: var(--rz-scrollbar-size);
}
.rz-layout::-webkit-scrollbar-corner,
.rz-layout ::-webkit-scrollbar-corner,
.rz-scrollbars::-webkit-scrollbar-corner,
.rz-scrollbars ::-webkit-scrollbar-corner {
  background-color

As u can see the css selector "body:not(.rz-default-scrollbars)" is missing.


Since i didnt find any documentation about adding the "rz-scrollbars" class to the body i think its a bug.
@yordanov I hope i made myself understandable.
Thanks!

Hi @GodzSky,

That's on purpose as we try to make the components as unobtrusive as possible.

Indeed, this is what you should do. Will add this explanation to the demos.

The behaviour in Standard Dark theme looks like a bug, will fix it, thanks!

1 Like