-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Scrollbar staying visible due to external CSS #5840
Comments
As far as I know, using global selectors like this is not generally encouraged. I believe for this exact reason. People use Blockly with a wide variety of libraries so it is difficult for us to cater to all of the different libraries with rules like this. For this reason, I believe the fix you have above is the correct way to go. I'm going to add the 'won't fix' label, however if I have missed something or misunderstood feel free to respond! Thanks! |
This came up in an issue on react-blockly as well with a Tailwind user. I came up with a similar workaround, although I think the one mentioned in this issue description might work even better. One possibility here might be to use the I do agree in general that global attributes like this should be avoided, but the reality is that Tailwind is a fairly popular library and it's likely people will continue to try to use it with Blockly. I don't love library-specific workarounds, but this issue seems like a pretty big footgun, and if my theoretical solution works, it doesn't seem like it'd make Blockly any worse if implemented. |
Adding svg[display="none"] {
display: none;
} to my |
Describe the bug
When using Blockly with a framework that pulls in https://github.com/jensimmons/cssremedy, notably TailwindCSS, the following style is applied:
This makes it so the flyout scrollbar will stay visible even when it shouldn't, because it is using the SVG attribute which is overridden by the CSS display property. As such, for a workaround I am using:
Screenshots
The text was updated successfully, but these errors were encountered: