Slidebars
Slidebars copied to clipboard
CSS selectors for property values can break easally
When a user sets the sidebar name/id to something similar as the style or location property the CSS selectors will fail to work properly.
Example:
[off-canvas*=bottom]
Will select this element aswell
<div off-canvas="bottom left push">
Solution:
If you but a space between the = and the value (= value
) it works correctly:
[off-canvas*= bottom]
Now this div won't be selected.
<div off-canvas="bottom left push">