className移除后某些css属性没有相应的移除
@AdamCaoQAQ is already working on this.
Since Aug 19, 2021.
Assessment
This issue has not been assessed yet.
Description
描述
className移除后某些css属性没有相应的移除
Hummer version:
@hummer/[email protected]
复现步骤
- 参考下面demo
预期结果
1 希望透明度为1
样例代码、屏幕截图或者仓库链接
.text {
padding: 32px;
font-size: 50px;
opacity: 1;
}
.text-md {
opacity: 0;
}
import React, { useState } from 'react';
import classNames from "classnames";
export default () => {
const [md, setMD] = useState(false);
const viewClassName = classNames("text",{
'text-md': md
});
return (
<text onTap={() => setMD(!md)} className={viewClassName}>hello word</text>
)
};
- Dominant language
- Objective-C
- Stars
- 1.4k
- Forks
- 186
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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 didi/Hummer
-
支持svg图吗?Openenhancement Needs: Triage 🔍
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
T i t li leOpenbug Needs: Triage 🔍
Difficulty 5/5 Over a week Newbie friendliness 1/100
-
升级yoga3(yoga2)后,scroller 在不设置size 时,两端大小表现不一致May be free again @yFeii claimed this 860 days ago, and no pull request is open. Openbug Needs: Triage 🔍
-
bug Needs: Triage 🔍
Difficulty 4/5 3-5 days Newbie friendliness 20/100
-
bug Needs: Triage 🔍
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Similar issues
-
A heading containing `$` or `\` is mangled in the table of contentsPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
schuyler/macdown3000#693 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
yetanotherbrowser/yab#1062 ·
Maintainers usually reply within 1 day
-
Peek: the card's top-bar buttons can miss a press while the card is pinchedPossibly taken @mjkang-estrella claimed this 2 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
ardia-browser/ardia#3087 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
darlinghq/darling#2335 · 1 comment ·
Maintainers usually reply within 1 day
-
Cocoa
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
getsentry/sentry-cocoa#9693 · 1 comment ·
Maintainers usually reply within 1 day