Skip to content

Add body class for user status#16

Open
simahawk wants to merge 1 commit intoshopinvader:masterfrom
simahawk:patch-1
Open

Add body class for user status#16
simahawk wants to merge 1 commit intoshopinvader:masterfrom
simahawk:patch-1

Conversation

@simahawk
Copy link
Contributor

No description provided.

Copy link
Collaborator

@thibaultrey thibaultrey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it be simpler to defined "user-authenticated" or "user-anonymous" into css_body variable instead of directly on HTML class attribute ?

@simahawk
Copy link
Contributor Author

simahawk commented Nov 4, 2019

@thibaultrey I thought about it but the answer is no: this classes must be there no matter if the user overrides css_body by error or willingness. These are not theme-related classes, they are app-related classes.
Also I think it's more explicit to add them on the body element.
See my point? But we can do as you prefer ;)
Another option is to use another var for it.

@simahawk
Copy link
Contributor Author

@thibaultrey ping?

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

Successfully merging this pull request may close these issues.

2 participants