Skip to content

What is this css-dev-only class? #38753

Pinned Answered by arvinxx
X-lem asked this question in Q&A
Nov 20, 2022 · 24 comments · 54 replies
Discussion options

You must be logged in to vote

css-dev-only class won't avoid overriding style. you can try with this demo. You can still override style as same as v4.

Actually I'm really strange that it's so easy to test it but most of you just say it can't override styles bal bal something like that.


the css-dev-only-hash actually usage is that avoid style conflict in application with mutliple instances of antd ,like micro-frontend.

for example, if two mirco app have different version of antd v5, the hash of these antd instance will be different. So A app's antd style won't affect B app's antd style due to they have different hash classes.

If we want to use hash class to scope antd style, we all know that it will rise the priority…

Replies: 24 comments 54 replies

Comment options

You must be logged in to vote
6 replies
@HStokbro
Comment options

@sebaseek
Comment options

@abenhamdine
Comment options

@sebaseek
Comment options

@zombieJ
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@nir1000
Comment options

@tanabalu
Comment options

@tanabalu
Comment options

Comment options

You must be logged in to vote
1 reply
@mitya-kocherga
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@sebaseek
Comment options

@cubohbrandon
Comment options

Comment options

You must be logged in to vote
7 replies
@sebaseek
Comment options

@abenhamdine
Comment options

@sebaseek
Comment options

@abenhamdine
Comment options

@sebaseek
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@abenhamdine
Comment options

@sebaseek
Comment options

@abenhamdine
Comment options

Comment options

You must be logged in to vote
4 replies
@abenhamdine
Comment options

@sebaseek
Comment options

@abenhamdine
Comment options

@GorkemSinirlioglu
Comment options

Comment options

You must be logged in to vote
1 reply
@mitya-kocherga
Comment options

Comment options

You must be logged in to vote
8 replies
@sewonist
Comment options

@bombillazo
Comment options

@ankhaaa1
Comment options

@khangsk
Comment options

@tangyongjin
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@top1st
Comment options

Comment options

You must be logged in to vote
1 reply
@zombieJ
Comment options

Comment options

You must be logged in to vote
1 reply
@cmprojectcm
Comment options

Comment options

You must be logged in to vote
11 replies
@Jaimeen24
Comment options

@c0d3m3nt0r
Comment options

@arvinxx
Comment options

@arvinxx
Comment options

@arvinxx
Comment options

Answer selected by arvinxx
Comment options

You must be logged in to vote
4 replies
@zombieJ
Comment options

@c0d3m3nt0r
Comment options

@c0d3m3nt0r
Comment options

@Junting-Liu
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dmahno
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment