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
Namespace, but think modularly (e.g. [foo-module="baz bar"]).
For anything that get's handled by JS, like setting an active class on a navigation module, use traditional class attribute. Reasoning: It's much easier to add/remove/toggle classes and IDs, using JavaScript, than it is to do the same for custom attributes.
The text was updated successfully, but these errors were encountered:
mhulse
changed the title
Attribute styling notes
Attribute styling rules
Jan 10, 2017
Rules:
[foo-module="baz bar"]
).active
class on a navigation module, use traditionalclass
attribute. Reasoning: It's much easier to add/remove/toggle classes and IDs, using JavaScript, than it is to do the same for custom attributes.The text was updated successfully, but these errors were encountered: