README review from a newcomer to css-blocks
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 52/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- css
- Domain
- documentation
Research direction
Review the referenced sections of README.md, especially the block/scope examples and the terminology around states, resolutions, and global states. Compare the surrounding explanations so the new examples show concrete usage and output, then correct the listed grammar, spelling, and wording issues. Done means a newcomer can distinguish block, scope, class, state, and sub-state selectors from the README alone.
Written by the indexing model from the issue text.
Description
After reading the entire README, I still don't understand when I should be using block or the scope pseudo selector.
- https://github.com/linkedin/css-blocks/blame/45969004e55545d397e9c8762507c1f52f1ba6da/README.md#L271
In this example, it was first mentioned that ":scope selector is automagically applied to the template's root-level element." It will be helpful to have the file name, output HTML file and CSS file to see exactly how :scope selector is applied. The code snippet example in its current state doesn't provide any clarification.
- https://github.com/linkedin/css-blocks/blame/45969004e55545d397e9c8762507c1f52f1ba6da/README.md#L128
I think that it will be helpful to have an example in the beginning that can demonstrate what block, scope, class, state, sub-state selectors are. Maybe a tweet? The code snippets from line 128 - 195 are all abstract at the moment, e.g.
:scope {
block-name: custom-block-name;
/* 👆 optional! */
/* ... more styles ... */
}
"To learn how to install css-blocks for in your application" -- for should be removed
- https://github.com/linkedin/css-blocks/blame/45969004e55545d397e9c8762507c1f52f1ba6da/README.md#L153
"Blocks may can contain other classes " -- may should be removed
- https://github.com/linkedin/css-blocks/blame/45969004e55545d397e9c8762507c1f52f1ba6da/README.md#L293
"You may not use a Block class outside of it's " -- should be its
"hasn't yet been implemented yet, " - should be "has not yet been implemented"
- https://github.com/linkedin/css-blocks/blame/45969004e55545d397e9c8762507c1f52f1ba6da/README.md#L324
"The resolution logic for @blocks to node_modules " -- should be @blocks
- https://github.com/linkedin/css-blocks/blame/45969004e55545d397e9c8762507c1f52f1ba6da/README.md#L180
"Sub-states of a State are mutually exclusive and an element may only be in one sub-state of that state at any given time."
Not everyone may be familiar with this terminology, it may be helpful to give a quick explanation before the code snippet. e.g.
"For example, a button can only be one color (state) at any time. It can be red, blue, or yellow (sub-state)"
- https://github.com/linkedin/css-blocks/blame/45969004e55545d397e9c8762507c1f52f1ba6da/README.md#L478
Is this suppose to beClass State?
- https://github.com/linkedin/css-blocks/blame/45969004e55545d397e9c8762507c1f52f1ba6da/README.md#L479
Is this suppose to beClass Sub-State?
- https://github.com/linkedin/css-blocks/blame/45969004e55545d397e9c8762507c1f52f1ba6da/README.md#L616
"If you have dynamic classes or states in your template, it will ask you to provide explicit resolutions between Blocks that even only have a chance of being used together on the same element." - what are you trying to say here? Suggest to change the wording, and provide an example of this problem and how it will be resolved.
- https://github.com/linkedin/css-blocks/blame/45969004e55545d397e9c8762507c1f52f1ba6da/README.md#L709
"In rare occasions, a Block may choose to declare declare that a certain State is global. " -- delete a "declare"
- Dominant language
- TypeScript
- Stars
- 6.3k
- Forks
- 154
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from linkedin/css-blocks
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
linkedin/css-blocks#592 ·
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
linkedin/css-blocks#590 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
linkedin/css-blocks#563 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 5/100
linkedin/css-blocks#562 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
linkedin/css-blocks#555 ·
All issues in linkedin/css-blocks
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
danielmiessler/LifeOS#2218 ·