Add unset and none classes
@dancormier is already working on this.
Since Jun 4, 2021.
Assessment
This issue has not been assessed yet.
Description
We should add some handy [x]-unset and [x]-none classes.
Context
@aaronshekey says (June 1, 2021):
I think an interesting chore would be creating a
noneandunsetfor just about every CSS property. We were limited by IE11 and Edge 18 there. No more!
For example,ff-unsetorz-unset
Classes that already exist*
[x]-none
background(.bg-none)background-image(.bg-image-none)box-shadow(.bs-none)clear(.clear-none)display(.d-none)float(.float-none)flex(.fl-none)hyphens(.hyphens-none)list-style(.list-ls-none)outline(.outline-none)pointer-events(.pe-none)text-decoration(.td-none)text-transform(.tt-none)user-drag(.ud-none)user-select(.us-none)
[x]-unset
box-sizing(.box-unset)display(.d-unset)font-style(.fs-unset)line-height(.lh-unset)list-style(.list-ls-unset)overflow-wrap(.ow-unset)position(.ps-unset)text-align(.ta-unset)text-transform(.tt-unset)transition-property(.t-unset)transition-delay(.t-delay-unset)vertical-align(.va-unset)word-break(.wb-unset)
*I think I got them all here
Potential issues
From MDN - unset
unsetcan be applied to any CSS property...
We could literally do this for every CSS property. I'm assuming we don't want to (at least, until we're hardcore purging our unused CSS).
TODO
- Determine a reasonable subset of
[x]-unsetclasses to add- ...and add them
- Determine a reasonable subset of
[x]-noneclasses to add- ...and add them
- update docs
- Dominant language
- TypeScript
- Stars
- 672
- Forks
- 107
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 26
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 StackExchange/Stacks
-
Difficulty 1/5 1-3 hours Newbie friendliness 62/100
StackExchange/Stacks#1030 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
StackExchange/Stacks#1842 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
StackExchange/Stacks#1413 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 50/100
StackExchange/Stacks#1242 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
StackExchange/Stacks#1224 ·
All issues in StackExchange/Stacks
Similar issues
-
Browser Waiting for: Product Owner
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
getsentry/sentry-javascript#24577 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
agilepathway/label-checker#640 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
copse-dev/agent-pane#2953 ·
-
agentic-workflows
Difficulty 1/5 Under an hour Newbie friendliness 85/100
githubnext/rig#534 ·
-
automation missing-model model-sync provider:pioneer
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
anomalyco/models.dev#7701 ·