digitalist-se / digitalist-se/ff

Talk about: When shouldn't you use class selectors?

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

You should be cautious when using global element selectors(like ul{} for example). Its hard to avoid that styling later on (unless you don't use that element..).

Exceptions to this rule that I can think of now is:
- a{}

Since if you use element selectors you should be aware that the styling in that selector should make sense to have on that element everywhere. If it doesn't you will have to undo the styling later on.

Example that I think is done alot (and probably should be avoided?):

ul{
padding: 0 0 0 20px;
}

Contributor guide

No contributing guide indexed for this repository

Research direction

No file, test, or entry point is named. Read the issue discussion and inspect the repository for existing CSS or style-guide documentation; done means the selector guidance and exceptions are agreed and recorded in the appropriate project documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
documentation
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.