-
-
Notifications
You must be signed in to change notification settings - Fork 706
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
Improve scoping of separator class #6010
Conversation
❌ Deploy Preview for volto failed. Why did it fail? →
|
✅ Deploy Preview for plone-components canceled.
|
@@ -318,6 +318,16 @@ body.has-toolbar.has-sidebar-collapsed .ui.wrapper > .ui.inner.block.full { | |||
0 2px 4px rgba(0, 0, 0, 0.05); | |||
transform: translate(-50%, 0); | |||
|
|||
.separator { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JeffersonBledsoe not quite, the html block on the edit page also uses this class
<div className="separator" /> |
I am ok with changing modifying the separator scope and/or prefixing it with other names so that it's not simply .separator.
I'm a bit surprised that on the demo site it's not prefixed .block .separator but even then it might conflict with a separator block
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ichim-david This is the toolbar that is mentioned and a screenshot taken of in the description. There's probably addons that use this CSS class too, but this is the only place I could find it in core
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JeffersonBledsoe you are correct, I did a better search and there are other separators such as within slate or the plone components but they have their own extra identifiers so this work is good.
The
.separator
class, used in the blocks toolbar like shown below, has a really low specificity, causing it to leak (try creating a block namedseparator
and seeing what happens to the blocks list 😉 ). This PR scopes it to.block .toolbar .separator
, which is really it's intended location