Skip to content
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

Attribute styling rules #106

Closed
mhulse opened this issue Jan 10, 2017 · 1 comment
Closed

Attribute styling rules #106

mhulse opened this issue Jan 10, 2017 · 1 comment

Comments

@mhulse
Copy link
Owner

mhulse commented Jan 10, 2017

Rules:

  1. Namespace, but think modularly (e.g. [foo-module="baz bar"]).
  2. 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.
@mhulse mhulse changed the title Attribute styling notes Attribute styling rules Jan 10, 2017
@mhulse mhulse added the README label Mar 31, 2018
@mhulse
Copy link
Owner Author

mhulse commented Aug 4, 2018

Moved to mhulse/acss#3

@mhulse mhulse closed this as completed Aug 4, 2018
@mhulse mhulse removed the README label Aug 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant