You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.
If I do quick edit on a HTML tag that has no class, but a CSS class for the tag with a class exists in the CSS, Quick Edit opens the definition of that class even if it is not applicable.
Example
p.hello {
border:1px solid red;
}
<pclass="hello">
...
</p><p>
...
</p>
If I quick edit the second tag I get the CSS definition for "p.hello".
If there is a class defined for the p tag present quick edit works correctly.
The text was updated successfully, but these errors were encountered:
Currently, our matching doesn't try to be overly smart. If your cursor is on a "p" tag we'll show all rules that match "p" regardless of what CSS classes the rule and/or the tag you're on may have. (Sometimes CSS rules can get added/removed dynamically at runtime, so it's useful to have this option even in the future). If your cursor is on a class attribute, we'll show only rules that match that class, however.
I looked at the heuristics user story and I cannot see how this issue is included apart maybe from using code intelligence.
The problem with the current behavior is that the user is unaware that the presented style does not match, so when one starts editing things may break in other locations of the project.
I added a criteria to the Heuristics story as my user story when trying brackets.
Thanks for the report. Added a link to this issue from the backlog card so that we can consider it when we get to revisiting the CSS Quick Edit heuristics. Closing.
If I do quick edit on a HTML tag that has no class, but a CSS class for the tag with a class exists in the CSS, Quick Edit opens the definition of that class even if it is not applicable.
Example
If I quick edit the second tag I get the CSS definition for "p.hello".
If there is a class defined for the p tag present quick edit works correctly.
The text was updated successfully, but these errors were encountered: