fix: anchor add prefixCls (#33085)

Co-authored-by: undefined <undefined>
This commit is contained in:
tangjinzhou 2021-12-04 17:13:00 +08:00 committed by GitHub
parent b34f72b1b6
commit ea7c41b90a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -291,7 +291,7 @@ export default class Anchor extends React.Component<AnchorProps, AnchorState, Co
); );
const anchorClass = classNames(prefixCls, { const anchorClass = classNames(prefixCls, {
fixed: !affix && !showInkInFixed, [`${prefixCls}-fixed`]: !affix && !showInkInFixed,
}); });
const wrapperStyle = { const wrapperStyle = {

View File

@ -86,7 +86,7 @@ exports[`renders ./components/anchor/demo/customizeHighlight.md correctly 1`] =
style="max-height:100vh" style="max-height:100vh"
> >
<div <div
class="ant-anchor fixed" class="ant-anchor ant-anchor-fixed"
> >
<div <div
class="ant-anchor-ink" class="ant-anchor-ink"
@ -160,7 +160,7 @@ exports[`renders ./components/anchor/demo/onChange.md correctly 1`] = `
style="max-height:100vh" style="max-height:100vh"
> >
<div <div
class="ant-anchor fixed" class="ant-anchor ant-anchor-fixed"
> >
<div <div
class="ant-anchor-ink" class="ant-anchor-ink"
@ -234,7 +234,7 @@ exports[`renders ./components/anchor/demo/onClick.md correctly 1`] = `
style="max-height:100vh" style="max-height:100vh"
> >
<div <div
class="ant-anchor fixed" class="ant-anchor ant-anchor-fixed"
> >
<div <div
class="ant-anchor-ink" class="ant-anchor-ink"
@ -308,7 +308,7 @@ exports[`renders ./components/anchor/demo/static.md correctly 1`] = `
style="max-height:100vh" style="max-height:100vh"
> >
<div <div
class="ant-anchor fixed" class="ant-anchor ant-anchor-fixed"
> >
<div <div
class="ant-anchor-ink" class="ant-anchor-ink"

View File

@ -50,7 +50,7 @@
} }
} }
&.fixed &-ink &-ink-ball { &-fixed &-ink &-ink-ball {
display: none; display: none;
} }