Some Block CSS contains too much specificity #23170
Labels
CSS Styling
Related to editor and front end styles, CSS-specific issues.
[Type] Code Quality
Issues or PRs that relate to code quality
[Type] Enhancement
A suggestion for improvement.
If the accepted "rules" for BEM naming conventions are applied, the rules for a nested contained element shouldn't be wrapped by the parent class name. This is generally well-applied in the codebase, but there are rules which aren't conformant.
E.g.
gutenberg/packages/block-library/src/media-text/style.scss
Line 44 in c19d2d9
Is:
.wp-block-media-text .wp-block-media-text__content {padding: 0 8% 0 8%;}
Should be:
.wp-block-media-text__content {padding: 0 8%;}
The text was updated successfully, but these errors were encountered: