Slidebars icon indicating copy to clipboard operation
Slidebars copied to clipboard

CSS selectors for property values can break easally

Open JoryHogeveen opened this issue 7 years ago • 0 comments

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">

JoryHogeveen avatar Oct 14 '16 23:10 JoryHogeveen