mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 14:13:37 +08:00
fix: anchor add prefixCls (#33085)
Co-authored-by: undefined <undefined>
This commit is contained in:
parent
b34f72b1b6
commit
ea7c41b90a
@ -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 = {
|
||||||
|
@ -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"
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.fixed &-ink &-ink-ball {
|
&-fixed &-ink &-ink-ball {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user