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

CSS modifiers applied incorrectly #11672

Closed
timkinnane opened this issue Aug 4, 2018 · 2 comments
Closed

CSS modifiers applied incorrectly #11672

timkinnane opened this issue Aug 4, 2018 · 2 comments
Assignees
Labels
Projects
Milestone

Comments

@timkinnane
Copy link
Contributor

@ggazzo I found a CSS bug that I don't quite understand, regarding the use of a CSS protocol I only just learned is called BEM. This bug relates to syntax modifiers on the header.

The file changes seem to track to your PR #10300 but I'm not sure if that's the source of the css or maybe you just modified something else in the file.

In the header CSS, there's a __block modifier, which I assume is applied by JS to change the display mode for different views / device versions? It's removing the padding from the unmodified class. See source here:

https://github.com/RocketChat/Rocket.Chat/blob/develop/packages/rocketchat-theme/client/imports/components/header.css#L2

Example here:

padding

I think it's incorrectly replacing instead of adding to to the base class styles. I'm not sure if all the BEM modifiers are broken or just this one. There's quite a few weird UI display alignment issues showing up lately.

@timkinnane
Copy link
Contributor Author

Ping @MartinSchoeler - lots of your changes in that file too, maybe you know what's up?

@tassoevan
Copy link
Contributor

there's a __block modifier

Actually, it is an element; modifiers in BEM are delimited by --.

The header.rc-header element is not losing its padding, but I'm seeing two problems with the hamburger menu:

  1. The .rc-header--burger class should implement some padding respecting RTL and LTR text directions;
  2. The .rc-header--burger class should be, to keep BEM semantics, .rc-header__burger.

@ggazzo ggazzo added the ui/ux label Aug 13, 2018
@ggazzo ggazzo added this to To do in August/2018 via automation Aug 13, 2018
@ggazzo ggazzo added this to the 0.69.0 milestone Aug 13, 2018
August/2018 automation moved this from To do to Done Aug 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
August/2018
  
Done
Development

No branches or pull requests

4 participants